From a5def2e613b14d738ccc5b337c40018a7efbf5c2 Mon Sep 17 00:00:00 2001 From: JovannMC Date: Sat, 16 Nov 2024 15:19:19 +0300 Subject: [PATCH] try to fix macos and linux building --- .github/workflows/build-mac.yml | 18 +++++++++++++++--- package-lock.json | 8 ++++---- package.json | 2 +- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 73fd2f6..0282837 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -29,8 +29,20 @@ jobs: - name: Build the application run: npm run build - - name: Archive build artifacts for macOS + - name: Compress macOS build artifacts (x64) + run: zip -r build/SlimeTora-darwin-x64.zip build/SlimeTora-darwin-x64 + + - name: Compress macOS build artifacts (arm64) + run: zip -r build/SlimeTora-darwin-arm64.zip build/SlimeTora-darwin-arm64 + + - name: Archive build artifacts for macOS (x64) + uses: actions/upload-artifact@v3 + with: + name: build-artifacts-macos-x64 + path: build/SlimeTora-darwin-x64.zip + + - name: Archive build artifacts for macOS (arm64) uses: actions/upload-artifact@v3 with: - name: build-artifacts-macos - path: build/*darwin* \ No newline at end of file + name: build-artifacts-macos-arm64 + path: build/SlimeTora-darwin-arm64.zip diff --git a/package-lock.json b/package-lock.json index 0c004b1..80864fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "copyfiles": "^2.4.1", "cross-env": "^7.0.3", "del-cli": "^6.0.0", - "electron": "^33.2.0", + "electron": "^31.7.5", "eslint": "^9.15.0", "node-gyp-build": "^4.8.3", "sass": "^1.81.0", @@ -2847,9 +2847,9 @@ "optional": true }, "node_modules/electron": { - "version": "33.2.0", - "resolved": "https://registry.npmjs.org/electron/-/electron-33.2.0.tgz", - "integrity": "sha512-PVw1ICAQDPsnnsmpNFX/b1i/49h67pbSPxuIENd9K9WpGO1tsRaQt+K2bmXqTuoMJsbzIc75Ce8zqtuwBPqawA==", + "version": "31.7.5", + "resolved": "https://registry.npmjs.org/electron/-/electron-31.7.5.tgz", + "integrity": "sha512-8zFzVJdhxTRmoPcRiKkEmPW0bJHAUsTQJwEX2YJ8X0BVFIJLwSvHkSlpCjEExVbNCAk+gHnkIYX+2OyCXrRwHQ==", "dev": true, "hasInstallScript": true, "license": "MIT", diff --git a/package.json b/package.json index 8fa440b..4b4c0de 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,7 @@ "copyfiles": "^2.4.1", "cross-env": "^7.0.3", "del-cli": "^6.0.0", - "electron": "^33.2.0", + "electron": "^31.7.5", "eslint": "^9.15.0", "node-gyp-build": "^4.8.3", "sass": "^1.81.0",