diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 0282837..18ac534 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -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" @@ -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 diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 64f6731..f896ec3 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -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" @@ -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 diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index f8d907f..0145ea3 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -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" @@ -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 diff --git a/package.json b/package.json index 751e4a6..c23d8de 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 --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",