From a2fb66e5af5dfd56499903c491a3496dbbc78d08 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Wed, 21 Aug 2024 01:03:32 +0300 Subject: [PATCH] update actions, try to fix windows build again --- .github/workflows/build.yml | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b144ba3..219191f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: branches: - main paths: + - '.github/workflows/build.yml' - package.json workflow_dispatch: create: @@ -39,6 +40,11 @@ jobs: - name: Install Node.js dependencies run: npm install + - name: Make app executable on Ubuntu + if: matrix.os == 'ubuntu-latest' + run: | + chmod +x build/SlimeTora-linux-x64/SlimeTora + - name: Build the application run: npm run build diff --git a/package.json b/package.json index 276f401..649d668 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "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)$'", - "preload": "npx @electron/rebuild && del-cli dist/ && tsc && npm run copy-files", + "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", "lint": "eslint ./src/**/*.ts"