mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-09-23 08:32:51 +00:00
ci(macos): get rid of the custom building
This commit is contained in:
@@ -60,33 +60,6 @@ jobs:
|
|||||||
|
|
||||||
- name: install frontend dependencies
|
- name: install frontend dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Create PKG with post-install script
|
|
||||||
if: matrix.platform == 'macos-latest'
|
|
||||||
run: |
|
|
||||||
# Create temporary directory for PKG creation
|
|
||||||
mkdir -p pkg_temp/scripts
|
|
||||||
cp scripts/postinstall.sh pkg_temp/scripts/
|
|
||||||
|
|
||||||
# Build the app first
|
|
||||||
pnpm tauri build -- ${{ matrix.args }}
|
|
||||||
|
|
||||||
# Find the built app
|
|
||||||
APP_PATH=$(find src-tauri/target/release/bundle/macos/ -name "*.app" | head -1)
|
|
||||||
APP_NAME=$(basename "$APP_PATH")
|
|
||||||
|
|
||||||
# Create PKG with post-install script
|
|
||||||
pkgbuild --root "$APP_PATH/.." \
|
|
||||||
--install-location /Applications \
|
|
||||||
--scripts pkg_temp/scripts \
|
|
||||||
--identifier "com.emerald.legacy" \
|
|
||||||
--version "1.3.0" \
|
|
||||||
--install-location "/Applications" \
|
|
||||||
--root "$APP_PATH" \
|
|
||||||
"Emerald-Legacy-Launcher.pkg"
|
|
||||||
|
|
||||||
# Move PKG to bundle directory
|
|
||||||
mkdir -p src-tauri/target/release/bundle/macos/
|
|
||||||
mv "Emerald-Legacy-Launcher.pkg" src-tauri/target/release/bundle/macos/
|
|
||||||
- uses: tauri-apps/tauri-action@v0
|
- uses: tauri-apps/tauri-action@v0
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user