Skip to content

Commit

Permalink
Archive right builds, fix windows build error(?)
Browse files Browse the repository at this point in the history
seriously how do you test github actions workflows
  • Loading branch information
JovannMC committed Aug 20, 2024
1 parent 88baa2f commit 9f1d87b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,16 @@ jobs:
- name: Build the application
run: npm run build

- name: Archive build artifacts
- name: Archive build artifacts for Ubuntu
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: build-artifacts-linux
path: build/*linux*

- name: Archive build artifacts for Windows
if: matrix.os == 'windows-latest'
uses: actions/upload-artifact@v3
with:
name: build-artifacts-${{ matrix.os }}
path: build/
name: build-artifacts-win32
path: build/*win32*
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"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",
"copy-files": "copyfiles -u 1 \"src/**/*.js\" \"src/**/*.html\" \"src/**/*.css\" \"src/**/*.ico\" \"src/**/*.png\" \"src/**/*.webp\" \"src/**/*.webm\" \"src/**/*.svg\" \"src/**/*.fbx\" src/languages/* dist/",
"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 9f1d87b

Please sign in to comment.