From d1537a3e902258162ab925473b49fa09a58173f9 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Wed, 21 Aug 2024 01:24:03 +0300 Subject: [PATCH] this is embarassing me when i chmod before the app is built ALSO WHY IS WINDOWS STILL FAILING HELP --- .github/workflows/build-ubuntu.yml | 11 +++++------ .github/workflows/build-windows.yml | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) 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",