-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from Xlient/feat_ci_builds
Create distributables for TerminalQuest
- Loading branch information
Showing
5 changed files
with
15,805 additions
and
17,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build and Release | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build_app: | ||
name: install and Test | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- run: | | ||
npm ci && npm test | ||
package_app: | ||
name: Package and publish | ||
timeout-minutes: 20 | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- run: | | ||
npm run ci | ||
npm run publish | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,5 @@ public/index.css | |
public/index.css.map | ||
public/app/ | ||
public/test/ | ||
|
||
out/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
var os = require('os'); | ||
module.exports = { | ||
packagerConfig: { | ||
asar: true, | ||
}, | ||
rebuildConfig: {}, | ||
makers: [ | ||
{ | ||
name: '@electron-forge/maker-squirrel', | ||
config: { | ||
authors: 'TerminalQuest', | ||
description: 'TerminalQuest', | ||
iconUrl: 'https://github.com/TerminalQuest/terminalquest/blob/main/public/images/app/logo.png' | ||
}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-zip', | ||
platforms: ['darwin'], | ||
}, | ||
{ | ||
name: '@electron-forge/maker-deb', | ||
config: {}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-rpm', | ||
config: {}, | ||
}, | ||
{ | ||
name: '@electron-forge/maker-dmg', | ||
config: { | ||
icon: 'public/images/app/logo.png', | ||
iconSize: 42, | ||
name: 'TerminalQuest', | ||
format: 'ULFO' | ||
} | ||
}, | ||
], | ||
publishers: [ | ||
{ | ||
name: '@electron-forge/publisher-github', | ||
config: { | ||
repository: { | ||
owner: 'Xlient', | ||
name: 'TerminalQuest'.concat("-",os.platform, os.arch) | ||
}, | ||
prerelease: true | ||
} | ||
} | ||
], | ||
plugins: [ | ||
{ | ||
name: '@electron-forge/plugin-auto-unpack-natives', | ||
config: {}, | ||
}, | ||
], | ||
}; |
Oops, something went wrong.