diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index caf3395..b144ba3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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* \ No newline at end of file diff --git a/package.json b/package.json index f12c297..276f401 100644 --- a/package.json +++ b/package.json @@ -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" },