Skip to content

Commit

Permalink
Update actions, build for current OS only
Browse files Browse the repository at this point in the history
will speed up building (cause idk why i decided to build for all platforms, when the only build thatll work is the one for current os)
  • Loading branch information
JovannMC committed Nov 16, 2024
1 parent 4b982d8 commit e1edfef
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

Expand All @@ -36,13 +36,13 @@ jobs:
run: zip -r build/SlimeTora-darwin-arm64.zip build/SlimeTora-darwin-arm64

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

- name: Archive build artifacts for macOS (arm64)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts-macos-arm64
path: build/SlimeTora-darwin-arm64.zip
8 changes: 4 additions & 4 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

Expand All @@ -41,13 +41,13 @@ jobs:
run: zip -r build/SlimeTora-linux-arm64.zip build/SlimeTora-linux-arm64

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

- name: Archive build artifacts for Linux (arm64)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts-linux-arm64
path: build/SlimeTora-linux-arm64.zip
8 changes: 4 additions & 4 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "20"

Expand All @@ -40,13 +40,13 @@ jobs:
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
uses: actions/upload-artifact@v4
with:
name: build-artifacts-win32-x64
path: build/SlimeTora-win32-x64.zip

- name: Archive build artifacts for Windows (arm64)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
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 --prune --ignore=\"^/(src|docs|.vscode|.eslintrc.cjs|.prettierrc|tsconfig.json|README.md|.gitignore)$\"",
"build": "npm run preload && npx @electron/packager . SlimeTora --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

0 comments on commit e1edfef

Please sign in to comment.