Skip to content

Commit

Permalink
new versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Official-Husko committed Apr 7, 2024
1 parent 3f93236 commit 56daf3c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/all_os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: patched_linux_asar
name: linux
path: ./apps/desktop/release/linux-unpacked/resources/app.asar

build_and_deploy_macos:
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: patched_mac_artifacts
name: mac
path: ./apps/desktop/release/mac-universal/GDLauncher.app/Contents/Resources/app.asar

build_and_deploy_windows:
Expand Down Expand Up @@ -104,6 +104,6 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: patched_win_asar
name: windows
path: ./apps/desktop/release/win-unpacked/resources/app.asar

4 changes: 2 additions & 2 deletions packages/config/src/appVersion.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import fs from "fs";
import path from "path";
import { execSync } from "child_process";
const gitCommitDate = execSync("git log -1 --format=%ct").toString().trim();
const gitCommitDate = execSync("git log -1 --format=%h --abbrev=7").toString().trim();

const VERSION_JSON = JSON.parse(
fs.readFileSync(path.resolve(__dirname, "../", "version.json")).toString()
);
const channel = VERSION_JSON.channel
? "-" + VERSION_JSON.channel + "." + gitCommitDate
? "-" + VERSION_JSON.channel + " (" + gitCommitDate + ")"
: "";

const version = VERSION_JSON.version;
Expand Down
4 changes: 2 additions & 2 deletions packages/config/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "2.0.99",
"channel": "beta"
"version": "2.0.6",
"channel": "adless"
}

0 comments on commit 56daf3c

Please sign in to comment.