https://github.com/aquamarine5/aquc.stackbricks
全自动且可灵活配置 无需任何服务器资源的后台更新程序 Fully automated and flexibly configurable background updater without any server resources or available hosts.
https://github.com/aquamarine5/aquc.stackbricks
updater updater-script
Last synced: over 1 year ago
JSON representation
全自动且可灵活配置 无需任何服务器资源的后台更新程序 Fully automated and flexibly configurable background updater without any server resources or available hosts.
- Host: GitHub
- URL: https://github.com/aquamarine5/aquc.stackbricks
- Owner: aquamarine5
- Created: 2021-11-13T15:31:06.000Z (over 4 years ago)
- Default Branch: stackbricks-v3
- Last Pushed: 2023-12-13T20:57:19.000Z (over 2 years ago)
- Last Synced: 2025-04-13T15:13:15.256Z (over 1 year ago)
- Topics: updater, updater-script
- Language: C#
- Homepage:
- Size: 7.67 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Aquc.Stackbricks
[]()
[](https://github.com/aquamarine5/Aquc.Stackbricks)
[]()
[]()
[]()
[]()
[]()
# How to start?
- First, download the single executable file `Aquc.Stackbricks.exe` from [release] (https://github.com/aquamarine5/Aquc.Stackbricks/releases/latest).
- Use `Aquc.Stackbricks config create` to create an empty config.
- Open the `Aquc.Stackbricks.config.json` config file and write the `ProgramManifest` values.
## About ProgramManifest
- `Version`: current version of the program
- `ProgramDir`: directory of the program file, use `\\` to replace `\`.
- `Id`: Name to identify the program
- `LastCheckTime` and `LastUpdateTime`: remain `null`.
### MsgPvderId and MsgPvderData
| 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|
### About commits standard about `%v1`
- 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)
### About PkgPvderId and PkgPvderData
- `stbks.pkgpvder.ghproxy`: Use `]]` as splited char
- (Username) ]] (RepoName) ]] (ReleaseTagName) ]] (ReleaseAssetFileName)
### UpdateActions
- UpdateActions is a list to specify what action to perform.
- Items in the list should have three values: `Id`, `Args` and `Flags`.
| 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| | | |
## How to interoperation?
- `update`: check for update, download package and run update action if program has latest version
- `self update`: check for Stackbricks update, download package and apply update if Stackbricks has latest version
