mirror of
https://github.com/open-goal/launcher.git
synced 2024-10-20 04:57:38 -04:00
release: persist the version of jak-project
that we downloaded (#69)
* release: persist the version of `jak-project` that we downloaded * release: go back to specifying `targets`
This commit is contained in:
parent
59fc3ec534
commit
4af8b93de5
10
.github/scripts/download-binaries/index.js
vendored
10
.github/scripts/download-binaries/index.js
vendored
|
@ -44,6 +44,7 @@ if (requestedVersion === "latest") {
|
||||||
repo: "jak-project",
|
repo: "jak-project",
|
||||||
});
|
});
|
||||||
release = releaseData;
|
release = releaseData;
|
||||||
|
requestedVersion = releaseData.tag_name;
|
||||||
} else {
|
} else {
|
||||||
const { data: releaseData } = await octokit.rest.repos.getReleaseByTag({
|
const { data: releaseData } = await octokit.rest.repos.getReleaseByTag({
|
||||||
owner: "open-goal",
|
owner: "open-goal",
|
||||||
|
@ -82,3 +83,12 @@ for (var i = 0; i < releaseAssets.length; i++) {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Write out the version we grabbed
|
||||||
|
const binaryBundleMeta = {
|
||||||
|
version: requestedVersion,
|
||||||
|
};
|
||||||
|
fs.writeFileSync(
|
||||||
|
"./out/metadata.json",
|
||||||
|
JSON.stringify(binaryBundleMeta, null, 2) + "\n"
|
||||||
|
);
|
||||||
|
|
|
@ -118,7 +118,7 @@ const releaseMeta = {
|
||||||
};
|
};
|
||||||
fs.writeFileSync(
|
fs.writeFileSync(
|
||||||
"./.tauri/latest-release.json",
|
"./.tauri/latest-release.json",
|
||||||
JSON.stringify(releaseMeta, null, 2) + "\n\n"
|
JSON.stringify(releaseMeta, null, 2) + "\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
await octokit.rest.repos.updateRelease({
|
await octokit.rest.repos.updateRelease({
|
||||||
|
|
2
.github/workflows/release.yaml
vendored
2
.github/workflows/release.yaml
vendored
|
@ -71,6 +71,7 @@ jobs:
|
||||||
cp ./artifact-out/*.exe ./src-tauri/bin || true
|
cp ./artifact-out/*.exe ./src-tauri/bin || true
|
||||||
cp ./third-party/glew_2.1.0/windows/glewinfo.exe ./src-tauri/bin
|
cp ./third-party/glew_2.1.0/windows/glewinfo.exe ./src-tauri/bin
|
||||||
cp -r ./artifact-out/data ./src-tauri
|
cp -r ./artifact-out/data ./src-tauri
|
||||||
|
cp ./.github/scripts/download-binaries/out/metadata.json ./src-tauri/data
|
||||||
ls ./src-tauri
|
ls ./src-tauri
|
||||||
ls ./src-tauri/bin
|
ls ./src-tauri/bin
|
||||||
ls ./src-tauri/data
|
ls ./src-tauri/data
|
||||||
|
@ -87,6 +88,7 @@ jobs:
|
||||||
cp ./artifact-out/* ./src-tauri/bin || true
|
cp ./artifact-out/* ./src-tauri/bin || true
|
||||||
cp ./third-party/glew_2.1.0/linux/glewinfo ./src-tauri/bin
|
cp ./third-party/glew_2.1.0/linux/glewinfo ./src-tauri/bin
|
||||||
cp -r ./artifact-out/data ./src-tauri
|
cp -r ./artifact-out/data ./src-tauri
|
||||||
|
cp ./.github/scripts/download-binaries/out/metadata.json ./src-tauri/data
|
||||||
ls ./src-tauri
|
ls ./src-tauri
|
||||||
ls ./src-tauri/bin
|
ls ./src-tauri/bin
|
||||||
ls ./src-tauri/data
|
ls ./src-tauri/data
|
||||||
|
|
|
@ -13,4 +13,3 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,50 +0,0 @@
|
||||||
.pane {
|
|
||||||
display: flex;
|
|
||||||
background-color: var(--bg-blue);
|
|
||||||
opacity: 90%;
|
|
||||||
border-radius: 5px;
|
|
||||||
box-shadow: inset 0px 0px 20px #000;
|
|
||||||
height: 100vh;
|
|
||||||
margin: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
|
||||||
font-size: 2em;
|
|
||||||
color: white;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: space-around;
|
|
||||||
height: 50vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
.return {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: flex-end;
|
|
||||||
height: 25vh;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
margin: 0;
|
|
||||||
list-style: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#links {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
width: 100vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
#links a,
|
|
||||||
#links i {
|
|
||||||
text-decoration: none;
|
|
||||||
color: white;
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
|
|
@ -1,74 +0,0 @@
|
||||||
import "./settings.css";
|
|
||||||
|
|
||||||
export const actions = `<div class="actions">
|
|
||||||
<div class="general nav-item" data-tooltip="General">
|
|
||||||
<i class="bi bi-sliders2-vertical" key="general"></i>
|
|
||||||
</div>
|
|
||||||
<div class="Files nav-item" data-tooltip="Files">
|
|
||||||
<i class="bi bi-folder2" key="files"></i>
|
|
||||||
</div>
|
|
||||||
<div class="links nav-item" data-tooltip="Links">
|
|
||||||
<i class="bi bi-link-45deg" key="links"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="spacer"></div>
|
|
||||||
|
|
||||||
<div class="return nav-item" data-tooltip="Back">
|
|
||||||
<i class="bi bi-arrow-return-left" key="return"></i>
|
|
||||||
</div>
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const general_pane = `<div class="pane">
|
|
||||||
<div id="general">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<button>Check for updates</button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button>Toggle dynamic backgrounds</button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button>Toggle automatic updates</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
export const files_pane = `<div class="pane">
|
|
||||||
<div id="files">
|
|
||||||
<ul>
|
|
||||||
<li>
|
|
||||||
<label for="install-dir">Current install directory:</label>
|
|
||||||
<textarea id="install-dir" name="install-dir" disabled>%/your/install/dir/here</textarea>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<Button>Decompile Game</Button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<Button>Build Game</Button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button>Uninstall</button>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
||||||
|
|
||||||
export const links_pane = `<div class="pane">
|
|
||||||
<div id="links">
|
|
||||||
<a href="https://github.com/open-goal/jak-project" target="_blank" rel="noopener noreferrer">
|
|
||||||
<i class="bi bi-github"> OpenGOAL Github Repository</i>
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<a href="https://open-goal.github.io/#/" target="_blank" rel="noopener noreferrer">
|
|
||||||
<i class="bi bi-files"> OpenGOAL Documentation</i>
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
|
|
||||||
<a href="https://discord.gg/VZbXMHXzWv" target="_blank" rel="noopener noreferrer">
|
|
||||||
<i class="bi bi-discord"> Discord Server</i>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>`;
|
|
|
@ -13,7 +13,9 @@
|
||||||
"bundle": {
|
"bundle": {
|
||||||
"active": true,
|
"active": true,
|
||||||
"targets": [
|
"targets": [
|
||||||
"all"
|
"msi",
|
||||||
|
"appimage",
|
||||||
|
"updater"
|
||||||
],
|
],
|
||||||
"identifier": "opengoal-launcher",
|
"identifier": "opengoal-launcher",
|
||||||
"icon": [
|
"icon": [
|
||||||
|
|
Loading…
Reference in a new issue