diff --git a/.github/workflows/build-ubuntu.yml b/.github/workflows/build-ubuntu.yml index 8161c2a..a141b8b 100644 --- a/.github/workflows/build-ubuntu.yml +++ b/.github/workflows/build-ubuntu.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - '.github/workflows/build-ubuntu.yml' + - ".github/workflows/build-ubuntu.yml" - package.json workflow_dispatch: create: @@ -31,15 +31,14 @@ jobs: - name: Install Node.js dependencies run: npm install - - name: Make app executable on Ubuntu - run: | - chmod +x ./build/SlimeTora-linux-x64/SlimeTora - - name: Build the application run: npm run build + - name: Make app executable on Ubuntu + run: chmod +x ./build/SlimeTora-linux-x64/SlimeTora + - name: Archive build artifacts for Ubuntu uses: actions/upload-artifact@v3 with: name: build-artifacts-linux - path: build/*linux* \ No newline at end of file + path: build/*linux* diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 1bdd45c..b2dd803 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -5,7 +5,7 @@ on: branches: - main paths: - - '.github/workflows/build-windows.yml' + - ".github/workflows/build-windows.yml" - package.json workflow_dispatch: create: @@ -37,4 +37,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: build-artifacts-win32 - path: build/*win32* \ No newline at end of file + path: build/*win32* diff --git a/package.json b/package.json index 649d668..4c4450d 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "scripts": { "start": "npm run preload && electron .", "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)$'", + "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|.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",