Tip
关于更新服务在Kotlin(适用于JVM或Jetpack Compose)的移植版参见Stackbricks项目,此项目是在.NET的C#语言版本。
Warning
此项目已经长期不再维护,且目前没有恢复维护的计划。
- First, download the single executable file
Aquc.Stackbricks.exefrom [release] (https://github.com/aquamarine5/Aquc.Stackbricks/releases/latest). - Use
Aquc.Stackbricks config createto create an empty config. - Open the
Aquc.Stackbricks.config.jsonconfig file and write theProgramManifestvalues.
Version: current version of the programProgramDir: directory of the program file, use\\to replace\.Id: Name to identify the programLastCheckTimeandLastUpdateTime: remainnull.
| Id | Description | Data |
|---|---|---|
| stbks.msgpvder.weibocmts | Request message from commits of Weibo post | Identity of Weibo post, use string type |
| stbks.msgpvder.bilicmts | Request message from commits of Bilibili post | Identity of Bilibili post, use string type |
- Simple:
stbks.msgpvder.weibocmts%1;;3.0.2.725;;stbks.pkgpvder.ghproxy;;aquamarine5]]Aquc.Stackbricks]]3.0.2.725]]Aquc.Stackbricks.exe - Use
;;as splited char - (MsgPvderId) ;; (VersionCode) ;; (PkgPvderId) ;; (PkgPvderData)
stbks.pkgpvder.ghproxy: Use]]as splited char- (Username) ]] (RepoName) ]] (ReleaseTagName) ]] (ReleaseAssetFileName)
- UpdateActions is a list to specify what action to perform.
- Items in the list should have three values:
Id,ArgsandFlags.
| Id | Description | Args | Flags |
|---|---|---|---|
| stbks.action.replaceall | Copy or replace all downloaded files in ProgramDir. | ||
| stbks.action.applyselfupdate | Should not use this action in ProgramManifest, apply Stackbricks self update |
update: check for update, download package and run update action if program has latest versionself update: check for Stackbricks update, download package and apply update if Stackbricks has latest version