[CI] Have version dynamically generated via commit
This commit is contained in:
parent
a8c0a15792
commit
c17dc1fb19
2 changed files with 2 additions and 1 deletions
1
.github/workflows/release_nightly.yml
vendored
1
.github/workflows/release_nightly.yml
vendored
|
@ -33,6 +33,7 @@ jobs:
|
|||
run: |
|
||||
node strip.js
|
||||
node injectPolyfills.js
|
||||
sed -i -e "s/nightly/nightly-$(git rev-parse HEAD | cut -c 1-7)/" src/index.js
|
||||
|
||||
npx asar pack src app.asar
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
const log = require('./utils/log');
|
||||
global.log = log; // Make log global for easy usage everywhere
|
||||
global.oaVersion = '0.2';
|
||||
global.oaVersion = 'nightly';
|
||||
|
||||
log('Init', 'OpenAsar v' + oaVersion);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue