Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
398411e
add action to build, package and upload release
Xlient Nov 10, 2023
5a1da8c
fix workflow errors
Xlient Nov 10, 2023
80762f5
package and publish TQ with Forge
Xlient Nov 11, 2023
8c872f7
Merge pull request #1 from Xlient/feat_ci_builds
Xlient Nov 11, 2023
2e9f562
Create main.yml
Xlient Nov 11, 2023
4db149f
put workflow in correct place and update workflow
Xlient Nov 11, 2023
f3f5078
Merge pull request #2 from Xlient/feat_ci_builds
Xlient Nov 11, 2023
e8331a9
Update build.yml
Xlient Nov 11, 2023
ba10892
Update build.yml
Xlient Nov 11, 2023
1559373
update package-lock.json
Xlient Nov 12, 2023
3abe611
fix deps again ...
Xlient Nov 12, 2023
26eadac
dont trigger test for now
Xlient Nov 12, 2023
85e3e81
add publish script
Xlient Nov 12, 2023
9f1b4f8
add package for publisher and makers
Xlient Nov 12, 2023
eb40490
upgrade node version to 14
Xlient Nov 12, 2023
6691a40
just try building on windows
Xlient Nov 12, 2023
6a2bc2d
fix repo name in the github-publisher config and set new time out
Xlient Nov 12, 2023
b4eeab6
add hook to clean up symlink
Xlient Nov 14, 2023
e5b0767
fix module_name
Xlient Nov 14, 2023
69ae52a
update maker config for deb, rpm and DMG
Xlient Nov 14, 2023
cd88b35
test publish script on all platforms
Xlient Nov 14, 2023
1bfaf0e
set python version to 3.9 in build
Xlient Nov 14, 2023
a484446
fix maker- add missing options object
Xlient Nov 14, 2023
44939f3
add product description to rpm maker
Xlient Nov 14, 2023
03f1e46
change repo owner and delete old job config
Xlient Nov 14, 2023
b06f134
use github token instead of PAT
Xlient Dec 25, 2023
90b5dd5
temporarily add push event
Xlient Dec 25, 2023
325c2ef
change it to pull_request
Xlient Dec 25, 2023
55ea17a
Add PAT back
Xlient Dec 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Release
on:
pull_request:

workflow_dispatch:

jobs:
package_app:
name: Package and publish
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
timeout-minutes: 35
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'

- uses: actions/setup-python@v4
with:
python-version: '3.9'
- run: |
npm ci
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/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
14.21
85 changes: 85 additions & 0 deletions forge.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
var os = require('os');
const path = require('path')
const fs = require('node:fs/promises');

module.exports = {
packagerConfig: {
asar: true,
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
authors: 'TerminalQuest',
description: 'The TerminalQuest game client',
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: {
options: {
description: 'The TerminalQuest game client',
name: 'TerminalQuest',
homepage:'https://terminal.quest/'
}
},
},
{
name: '@electron-forge/maker-rpm',
config: {
options: {
description: 'The TerminalQuest game client',
productDescription: 'TerminalQuest is role-playing game where you - as an elite agent known as the Operator - embark on an adventure to explore and safeguard the virtual universe of The Cloud. To do so, you will need to master the tools of software development and beyond.',
name: 'TerminalQuest',
homepage:'https://terminal.quest/'
}
},
},
{
name: '@electron-forge/maker-dmg',
config: {
icon: 'public/images/app/logo.png',
iconSize: 42,
name: 'TerminalQuest'.concat("-",os.platform, os.arch),
format: 'ULFO'
}
},
],
publishers: [
{
name: '@electron-forge/publisher-github',
config: {
repository: {
owner: 'terminalquest',
name: 'terminalquest'
},
prerelease: true,
draft: false
}
}
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
],
hooks: { // workaround for dangling symlink issue : https://github.com/nodejs/node-gyp/issues/2713
packageAfterPrune: async (_config, buildPath) => {
const gypPath = path.join(
buildPath,
'node_modules',
'node-sass',
'build',
'node_gyp_bins'
);
await fs.rm(gypPath, {recursive: true, force: true});
}
}
};
Loading