allow manual triggering of builds
bump action versions add token reference for electron build add release workflow add links for windows replacements add helper for github build workflow align asset names with build artifact names produce zip artifacts from electron build change artifact name to KiriMoto and add array build target add mac app signing add electron app icons add links.csv helper add dryrun cache build and integration into electron app for faster startup allow windows install alt location. suppress gdpr on localhost / built apps
This commit is contained in:
parent
7e8838da1c
commit
b526bec87e
18 changed files with 372 additions and 59 deletions
18
bin/github-getver.js
Normal file
18
bin/github-getver.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// create version for release for github build workflow
|
||||
|
||||
const fs = require('fs');
|
||||
const type = process.argv[2];
|
||||
|
||||
if (type && process.env.GITHUB_ENV) {
|
||||
const pkgVer = JSON.parse(fs.readFileSync('package.json', 'utf8')).version;
|
||||
const rando = ((Math.random() * 0xfff) & 0xfff).toString().padStart(4,0);
|
||||
const releaseTag =
|
||||
type === 'workflow_dispatch' ? `${pkgVer}.${rando}` :
|
||||
type === 'push' ? pkgVer :
|
||||
(`rogue-` + ( (Math.random() * 0xfffff) & 0xfffff ))
|
||||
|
||||
console.log({ type, version: pkgVer, releaseTag });
|
||||
|
||||
// write version to GITHUB_ENV file
|
||||
fs.appendFileSync(process.env.GITHUB_ENV, `TAG_NAME=${releaseTag}\n`);
|
||||
}
|
||||
Loading…
Reference in a new issue