snolab / CapsLockX

Manipulate your computer like a hacker! 像黑客一样操作电脑!
https://snolab.github.io/CapsLockX/
GNU General Public License v3.0
249 stars 24 forks source link

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

Closed steveh8758 closed 8 months ago

steveh8758 commented 10 months ago

最近我也有嘗試想要自動更新,不然太不方便了,我個人的做法是架一個 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 commented 10 months ago

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 commented 10 months ago

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

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

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

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

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

Issues-translate-bot commented 10 months ago

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 commented 9 months ago

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

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

Issues-translate-bot commented 9 months ago

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!

github-actions[bot] commented 8 months ago

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.