fix: fix macOS build error and double folder issues
This commit is contained in:
48
.github/workflows/electron-build.yml
vendored
48
.github/workflows/electron-build.yml
vendored
@@ -49,16 +49,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Windows x64 NSIS Installer
|
- name: Upload Windows x64 NSIS Installer
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
if: hashFiles('release/*-x64.exe') != ''
|
||||||
with:
|
with:
|
||||||
name: Termix-Windows-x64-NSIS
|
name: Termix-Windows-x64-NSIS
|
||||||
path: release/*.exe
|
path: release/*-x64.exe
|
||||||
retention-days: 30
|
|
||||||
|
|
||||||
- name: Upload Windows x64 MSI Installer
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: Termix-Windows-x64-MSI
|
|
||||||
path: release/*.msi
|
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Upload Windows ia32 NSIS Installer
|
- name: Upload Windows ia32 NSIS Installer
|
||||||
@@ -69,32 +63,36 @@ jobs:
|
|||||||
path: release/*-ia32.exe
|
path: release/*-ia32.exe
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Create Windows x64 Portable zip
|
- name: Upload Windows x64 MSI Installer
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
if (Test-Path "release/win-unpacked") {
|
if: hashFiles('release/*-x64.msi') != ''
|
||||||
Compress-Archive -Path "release/win-unpacked/*" -DestinationPath "Termix-Windows-x64-Portable.zip"
|
with:
|
||||||
}
|
name: Termix-Windows-x64-MSI
|
||||||
|
path: release/*-x64.msi
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
- name: Create Windows ia32 Portable zip
|
- name: Upload Windows ia32 MSI Installer
|
||||||
run: |
|
uses: actions/upload-artifact@v4
|
||||||
if (Test-Path "release/win-ia32-unpacked") {
|
if: hashFiles('release/*-ia32.msi') != ''
|
||||||
Compress-Archive -Path "release/win-ia32-unpacked/*" -DestinationPath "Termix-Windows-ia32-Portable.zip"
|
with:
|
||||||
}
|
name: Termix-Windows-ia32-MSI
|
||||||
|
path: release/*-ia32.msi
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
- name: Upload Windows x64 Portable
|
- name: Upload Windows x64 Portable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: hashFiles('Termix-Windows-x64-Portable.zip') != ''
|
if: hashFiles('release/win-unpacked/*') != ''
|
||||||
with:
|
with:
|
||||||
name: Termix-Windows-x64-Portable
|
name: Termix-Windows-x64-Portable
|
||||||
path: Termix-Windows-x64-Portable.zip
|
path: release/win-unpacked/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Upload Windows ia32 Portable
|
- name: Upload Windows ia32 Portable
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: hashFiles('Termix-Windows-ia32-Portable.zip') != ''
|
if: hashFiles('release/win-ia32-unpacked/*') != ''
|
||||||
with:
|
with:
|
||||||
name: Termix-Windows-ia32-Portable
|
name: Termix-Windows-ia32-Portable
|
||||||
path: Termix-Windows-ia32-Portable.zip
|
path: release/win-ia32-unpacked/
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
@@ -212,11 +210,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -f package-lock.json
|
rm -f package-lock.json
|
||||||
npm install
|
npm install
|
||||||
npm install --force @rollup/rollup-darwin-arm64
|
# Clean and reinstall @swc/core with proper native bindings
|
||||||
npm install --force @rollup/rollup-darwin-x64
|
rm -rf node_modules/@swc
|
||||||
npm install --force @swc/core-darwin-arm64
|
npm install --force @swc/core-darwin-arm64
|
||||||
npm install --force @swc/core-darwin-x64
|
npm install --force @swc/core-darwin-x64
|
||||||
npm install --force @swc/core
|
npm install --force @swc/core
|
||||||
|
npm install --force @rollup/rollup-darwin-arm64
|
||||||
|
npm install --force @rollup/rollup-darwin-x64
|
||||||
|
|
||||||
- name: Check for Code Signing Certificates
|
- name: Check for Code Signing Certificates
|
||||||
id: check_certs
|
id: check_certs
|
||||||
|
|||||||
Reference in New Issue
Block a user