Skip to content

Commit

Permalink
Merge pull request #1 from Xlient/feat_ci_builds
Browse files Browse the repository at this point in the history
Create distributables for TerminalQuest
  • Loading branch information
Xlient authored Nov 11, 2023
2 parents 15b6c83 + 80762f5 commit 8c872f7
Show file tree
Hide file tree
Showing 5 changed files with 15,805 additions and 17,411 deletions.
42 changes: 42 additions & 0 deletions .github/build.yml
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ public/index.css
public/index.css.map
public/app/
public/test/

out/
56 changes: 56 additions & 0 deletions forge.config.js
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: {},
},
],
};
Loading

0 comments on commit 8c872f7

Please sign in to comment.