mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-19 14:47:36 -04:00
docs: document intended release process
This commit is contained in:
parent
25f21e046d
commit
036a049cb1
33
.github/scripts/update-release-metadata/index.js
vendored
33
.github/scripts/update-release-metadata/index.js
vendored
|
@ -40,7 +40,7 @@ let tagToSearchFor = process.env.TAG_VALUE.split("refs/tags/")[1];
|
|||
const { data: releaseData } = await octokit.rest.repos.getReleaseByTag({
|
||||
owner: "open-goal",
|
||||
repo: "jak-project",
|
||||
tag: tagToSearchFor
|
||||
tag: tagToSearchFor,
|
||||
});
|
||||
|
||||
if (releaseData === undefined) {
|
||||
|
@ -50,21 +50,24 @@ if (releaseData === undefined) {
|
|||
|
||||
// TODO - no macOS yet
|
||||
const releaseMeta = {
|
||||
"name": releaseData.tag_name,
|
||||
"notes": "UPDATE",
|
||||
"pub_date": releaseData.created_at,
|
||||
"platforms": {
|
||||
"linux": {
|
||||
"signature": "",
|
||||
"url": `https://github.com/open-goal/launcher/releases/download/${releaseData.tag_name}/opengoal-launcher-linux.AppImage.tar.gz`
|
||||
name: releaseData.tag_name,
|
||||
notes: "UPDATE",
|
||||
pub_date: releaseData.created_at,
|
||||
platforms: {
|
||||
linux: {
|
||||
signature: "",
|
||||
url: `https://github.com/open-goal/launcher/releases/download/${releaseData.tag_name}/opengoal-launcher-linux.AppImage.tar.gz`,
|
||||
},
|
||||
"win64": {
|
||||
"signature": "",
|
||||
"url": `https://github.com/open-goal/launcher/releases/download/${releaseData.tag_name}/opengoal-launcher-windows.x64.msi.zip`
|
||||
}
|
||||
}
|
||||
}
|
||||
win64: {
|
||||
signature: "",
|
||||
url: `https://github.com/open-goal/launcher/releases/download/${releaseData.tag_name}/opengoal-launcher-windows.x64.msi.zip`,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
fs.writeFileSync("./.tauri/latest-release.json", JSON.stringify(releaseMeta, null, 2));
|
||||
fs.writeFileSync(
|
||||
"./.tauri/latest-release.json",
|
||||
JSON.stringify(releaseMeta, null, 2)
|
||||
);
|
||||
|
||||
// TODO - take the release out of draft when we are ready to actually publish!
|
||||
|
|
13
README.md
13
README.md
|
@ -28,3 +28,16 @@ We are using Tauri to build a native app, but still with simple Web technology.
|
|||
- `npm run tauri dev`
|
||||
|
||||
This builds the app with Tauri (this is a rust compilation, the first run will take a while) and the frontend is served via Vite -- a nice web server that will hot-reload any changes as you develop.
|
||||
|
||||
## Release Process
|
||||
|
||||
```mermaid
|
||||
sequenceDiagram
|
||||
jak-project->>jak-project: New tag is manually cut and built
|
||||
jak-project->>launcher: Repository Dispatch to start release
|
||||
launcher->>launcher: Alternatively, manually triggered release here
|
||||
launcher->>launcher: Build App for all supported platforms
|
||||
launcher->>launcher: Publish release and update latest release metadata file in repo
|
||||
website->>GitHub API: Website will display latest release
|
||||
app->>launcher: Detect new version and will prompt the user to update
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue