diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 0b8596f..0282837 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -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 diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 6e5aa9c..64f6731 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -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 diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index b2dd803..f8d907f 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -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 diff --git a/package.json b/package.json index 4b4c0de..751e4a6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/static/images/icon.icns b/src/static/images/icon.icns index d7075b4..b42c14c 100644 Binary files a/src/static/images/icon.icns and b/src/static/images/icon.icns differ