Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自動更新的一點點想法 #87

Closed
steveh8758 opened this issue Dec 5, 2023 · 6 comments
Closed

自動更新的一點點想法 #87

steveh8758 opened this issue Dec 5, 2023 · 6 comments
Assignees
Labels

Comments

@steveh8758
Copy link

最近我也有嘗試想要自動更新,不然太不方便了,我個人的做法是架一個 HFS 的伺服器,透過 CURL 去 upload ,加上壓縮檔的自解和執行指令,應該算是方便,供參。

下載也可以如是的方式去載

REM make self unzip
%RAR_DIR% a -ep1 -r %RAR_OUTPUT_FILE_DIR% %FILE_DIR%.exe .\DelSelf.cmd -sfx -iicon%ICON_DIR% -z.\tmp.ini -p%RAR_PWD% -m5 -df

REM Upload AHKOOL_SETUP.exe to server
curl -u %HFS_ACC%:%HFS_PWD% -X POST -F "file=@%RAR_OUTPUT_FILE_DIR%" -F press="Upload files" %HFS_SERVER%
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: A little idea about automatic updates

Recently, I have also tried to automatically update, otherwise it would be too inconvenient. My personal approach is to set up an HFS server, upload through CURL, and add the self-decryption and execution instructions of the compressed file. It should be considered convenient. For reference .

You can also download it in the following way

REM make self unzip
%RAR_DIR% a -ep1 -r %RAR_OUTPUT_FILE_DIR% %FILE_DIR%.exe .\DelSelf.cmd -sfx -iicon%ICON_DIR% -z.\tmp.ini -p%RAR_PWD% -m5 -df

REM Upload AHKOOL_SETUP.exe to server
curl -u %HFS_ACC%:%HFS_PWD% -X POST -F "file=@%RAR_OUTPUT_FILE_DIR%" -F press="Upload files" %HFS_SERVER%

@snomiao snomiao self-assigned this Dec 6, 2023
@snomiao
Copy link
Member

snomiao commented Dec 6, 2023

你用的什麼安装方式?最近有遇到無法更新的問題嗎?

如果是包管理安装的話一般還是通過包管理工具来更新比較好。

如果是编携版的話,目前好像是手動更新,等我闲了再研究下。。

自解圧的方式很值得参考。

CURL upload応該用不上,因為github action会自動上伝到release裏面。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


What installation method did you use? Have you encountered the problem of being unable to update recently?

If it is a package management installation, it is generally better to update through the package management tool.

If it is a portable version, it seems to be updated manually at the moment. I will study it when I have free time. .

CURL upload should not be used because the github action will automatically be uploaded to the release.

@steveh8758
Copy link
Author

我用的是攜帶版的,因為有些時候會加入自己的功能,

所以才有上面的建議和用法,謝謝大佬!

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I use the portable version because sometimes I add my own functions.

That’s why I have the above suggestions and usage, thank you boss!

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jan 27, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants