Add release steps for Gitea and Dalamud
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
# Release steps for Dawnsorrow/HSCompare (Gitea + Dalamud)
|
||||
|
||||
Repo: **http://brassnet.ddns.net:33983/Dawnsorrow/HSCompare**
|
||||
|
||||
---
|
||||
|
||||
## 1. Push the code (one-time or after changes)
|
||||
|
||||
From this folder in a terminal:
|
||||
|
||||
```bash
|
||||
cd "/home/jorg/Documents/My Dalamud Plugins/HSCompare"
|
||||
git push -u origin main
|
||||
```
|
||||
|
||||
If `git push` asks for credentials, use your Gitea login (username + password or token).
|
||||
If the remote is already added and push failed before, just run `git push`.
|
||||
|
||||
---
|
||||
|
||||
## 2. Create the release on Gitea and add the zip
|
||||
|
||||
1. Open **http://brassnet.ddns.net:33983/Dawnsorrow/HSCompare**
|
||||
2. Go to **Releases** → **Create new release**
|
||||
3. **Tag:** `v1.0.2` (must match the version in `pluginmaster.json`)
|
||||
4. **Title:** e.g. `v1.0.2`
|
||||
5. **Attach file:**
|
||||
Upload this file from your PC:
|
||||
`HSCompare/bin/Release/HSCompare/latest.zip`
|
||||
(Build first with `dotnet build -c Release` if needed.)
|
||||
6. Save the release.
|
||||
|
||||
The zip download URL will be:
|
||||
|
||||
**http://brassnet.ddns.net:33983/Dawnsorrow/HSCompare/releases/download/v1.0.2/latest.zip**
|
||||
|
||||
This is already set in `pluginmaster.json`.
|
||||
|
||||
---
|
||||
|
||||
## 3. Add the plugin in Dalamud (you and your users)
|
||||
|
||||
1. In-game, type **`/xlsettings`**
|
||||
2. Open the **Experimental** tab
|
||||
3. Under **Custom Plugin Repositories**, click **Add**
|
||||
4. Paste this URL and save:
|
||||
|
||||
**http://brassnet.ddns.net:33983/Dawnsorrow/HSCompare/raw/main/pluginmaster.json**
|
||||
|
||||
If your default branch is `master` instead of `main`, use:
|
||||
|
||||
**http://brassnet.ddns.net:33983/Dawnsorrow/HSCompare/raw/master/pluginmaster.json**
|
||||
|
||||
5. Open the **Plugin Installer**, search for **HSCompare**, and install.
|
||||
|
||||
---
|
||||
|
||||
## 4. Later: new version (e.g. 1.0.3)
|
||||
|
||||
1. Bump `<Version>` in `HSCompare/HSCompare.csproj`
|
||||
2. Update `CHANGELOG.md`
|
||||
3. Run `dotnet build -c Release`
|
||||
4. Commit, push: `git add . && git commit -m "Release v1.0.3" && git push`
|
||||
5. On Gitea: new release with tag `v1.0.3`, attach the new `latest.zip` from `HSCompare/bin/Release/HSCompare/`
|
||||
6. In the repo, edit `pluginmaster.json`: update `AssemblyVersion` (e.g. `1.0.3.0`), both download URLs to use `v1.0.3` in the path, and `LastUpdate` to current Unix time (`date +%s`). Commit and push.
|
||||
Reference in New Issue
Block a user