Skip to content

Commit

Permalink
fix icns & upload diff artifacts for archs
Browse files Browse the repository at this point in the history
also try to reduce filesize with --prune
  • Loading branch information
JovannMC committed Nov 16, 2024
1 parent 56885d9 commit 4b982d8
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 10 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,20 @@ jobs:
- name: Build the application
run: npm run build

- name: Archive build artifacts for macOS
- name: Compress macOS build artifacts (x64)
run: zip -r build/SlimeTora-darwin-x64.zip build/SlimeTora-darwin-x64

- name: Compress macOS build artifacts (arm64)
run: zip -r build/SlimeTora-darwin-arm64.zip build/SlimeTora-darwin-arm64

- name: Archive build artifacts for macOS (x64)
uses: actions/upload-artifact@v3
with:
name: build-artifacts-macos-x64
path: build/SlimeTora-darwin-x64.zip

- name: Archive build artifacts for macOS (arm64)
uses: actions/upload-artifact@v3
with:
name: build-artifacts-macos
path: build/*darwin*
name: build-artifacts-macos-arm64
path: build/SlimeTora-darwin-arm64.zip
18 changes: 15 additions & 3 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,20 @@ jobs:
- name: Build the application
run: npm run build

- name: Archive build artifacts for Ubuntu
- name: Compress Linux build artifacts (x64)
run: zip -r build/SlimeTora-linux-x64.zip build/SlimeTora-linux-x64

- name: Compress Linux build artifacts (arm64)
run: zip -r build/SlimeTora-linux-arm64.zip build/SlimeTora-linux-arm64

- name: Archive build artifacts for Linux (x64)
uses: actions/upload-artifact@v3
with:
name: build-artifacts-linux-x64
path: build/SlimeTora-linux-x64.zip

- name: Archive build artifacts for Linux (arm64)
uses: actions/upload-artifact@v3
with:
name: build-artifacts-linux
path: build/*linux*
name: build-artifacts-linux-arm64
path: build/SlimeTora-linux-arm64.zip
18 changes: 15 additions & 3 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,20 @@ jobs:
- name: Build the application
run: npm run build

- name: Archive build artifacts for Windows
- name: Compress Windows build artifacts (x64)
run: powershell Compress-Archive -Path build\SlimeTora-win32-x64\* -DestinationPath build\SlimeTora-win32-x64.zip

- name: Compress Windows build artifacts (arm64)
run: powershell Compress-Archive -Path build\SlimeTora-win32-arm64\* -DestinationPath build\SlimeTora-win32-arm64.zip

- name: Archive build artifacts for Windows (x64)
uses: actions/upload-artifact@v3
with:
name: build-artifacts-win32-x64
path: build/SlimeTora-win32-x64.zip

- name: Archive build artifacts for Windows (arm64)
uses: actions/upload-artifact@v3
with:
name: build-artifacts-win32
path: build/*win32*
name: build-artifacts-win32-arm64
path: build/SlimeTora-win32-arm64.zip
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"scripts": {
"start": "npm run preload && cross-env DEVELOPMENT=true && electron .",
"dev": "cross-env DEVELOPMENT=true && tsc && npm run copy-files && electron .",
"build": "npm run preload && npx @electron/packager . SlimeTora --platform=win32,darwin,linux --arch=x64,arm64 --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)$\"",
"build": "npm run preload && npx @electron/packager . SlimeTora --platform=win32,darwin,linux --arch=x64,arm64 --overwrite --out=build/ --icon=src/static/images/icon.ico --asar --extra-resource=src/languages --prune --ignore=\"^/(src|docs|.vscode|.eslintrc.cjs|.prettierrc|tsconfig.json|README.md|.gitignore)$\"",
"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",
Expand Down
Binary file modified src/static/images/icon.icns
Binary file not shown.

0 comments on commit 4b982d8

Please sign in to comment.