Skip to content

Commit

Permalink
update actions, try to fix windows build again
Browse files Browse the repository at this point in the history
  • Loading branch information
JovannMC committed Aug 20, 2024
1 parent 9f1d87b commit a2fb66e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- main
paths:
- '.github/workflows/build.yml'
- package.json
workflow_dispatch:
create:
Expand Down Expand Up @@ -39,6 +40,11 @@ jobs:
- name: Install Node.js dependencies
run: npm install

- name: Make app executable on Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
chmod +x build/SlimeTora-linux-x64/SlimeTora
- name: Build the application
run: npm run build

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"start": "npm run preload && electron .",
"dev": "cross-env DEVELOPMENT=true && tsc && npm run copy-files && electron .",
"build": "npm run preload && npx @electron/packager . SlimeTora --platform=win32,linux --arch=x64 --overwrite --out='build/' --icon=src/static/images/icon.ico --asar --extra-resource=src/languages --ignore='^/(src|docs|.vscode|.eslintrc.cjs|.prettierrc|tsconfig.json|README.md|.gitignore)$'",
"preload": "npx @electron/rebuild && del-cli dist/ && tsc && npm run copy-files",
"preload": "npx @electron/rebuild && npx del-cli dist/ && tsc && npm run copy-files",
"copy-files": "npx copyfiles -u 1 \"src/**/*.js\" \"src/**/*.html\" \"src/**/*.css\" \"src/**/*.ico\" \"src/**/*.png\" \"src/**/*.webp\" \"src/**/*.webm\" \"src/**/*.svg\" \"src/**/*.fbx\" src/languages/* dist/",
"build-bulma": "npx sass --watch ./src/static/css/index.scss ./src/static/css/index.css",
"lint": "eslint ./src/**/*.ts"
Expand Down

0 comments on commit a2fb66e

Please sign in to comment.