mirror of
https://github.com/LCE-Hub/LCE-Emerald-Launcher.git
synced 2026-07-18 00:10:45 +00:00
revert
This commit is contained in:
195
.github/workflows/nightly.yml
vendored
195
.github/workflows/nightly.yml
vendored
@@ -52,39 +52,12 @@ jobs:
|
||||
|
||||
- name: install frontend dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build and create DMG for macOS
|
||||
- name: build and fix macOS
|
||||
if: matrix.platform == 'macos-latest'
|
||||
run: |
|
||||
pnpm build
|
||||
cd src-tauri
|
||||
cargo build --release --target ${{ matrix.args }}
|
||||
cd ..
|
||||
|
||||
TARGET_ARCH=${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}
|
||||
|
||||
mkdir -p "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/MacOS"
|
||||
mkdir -p "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/Resources"
|
||||
|
||||
cp "src-tauri/target/$TARGET_ARCH/release/emerald-legacy-launcher" "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/MacOS/"
|
||||
|
||||
printf '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n <key>CFBundleExecutable</key>\n <string>emerald-legacy-launcher</string>\n <key>CFBundleIdentifier</key>\n <string>com.emerald.legacy</string>\n <key>CFBundleName</key>\n <string>Emerald Legacy Launcher</string>\n <key>CFBundleVersion</key>\n <string>1.0.0</string>\n <key>CFBundleShortVersionString</key>\n <string>1.0.0</string>\n <key>CFBundlePackageType</key>\n <string>APPL</string>\n <key>NSHighResolutionCapable</key>\n <true/>\n <key>LSApplicationCategoryType</key>\n <string>public.app-category.games</string>\n</dict>\n</plist>\n' > "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/Info.plist"
|
||||
|
||||
if [ -f "src-tauri/icons/icon.icns" ]; then
|
||||
cp src-tauri/icons/icon.icns "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/Resources/"
|
||||
fi
|
||||
|
||||
chmod +x "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/MacOS/emerald-legacy-launcher"
|
||||
|
||||
cd "src-tauri/target/$TARGET_ARCH/release/bundle/macos"
|
||||
hdiutil create -volname "Emerald Legacy Launcher" -srcfolder "Emerald Legacy Launcher.app" -ov -format UDZO "Emerald Legacy Launcher.dmg"
|
||||
|
||||
mkdir -p "$GITHUB_WORKSPACE/src-tauri/target/release/bundle/dmg/"
|
||||
mv "Emerald Legacy Launcher.dmg" "$GITHUB_WORKSPACE/src-tauri/target/release/bundle/dmg/"
|
||||
|
||||
- name: Build with tauri-action for Windows and Linux
|
||||
if: matrix.platform != 'macos-latest'
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
pnpm tauri build ${{ matrix.args }}
|
||||
pnpm run post-build:macos
|
||||
- uses: tauri-apps/tauri-action@v0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
@@ -92,166 +65,48 @@ jobs:
|
||||
releaseName: 'Emerald Nightly'
|
||||
releaseBody: |
|
||||
# Emerald Legacy Launcher (Nightly)
|
||||
|
||||
## 📥 What to download?
|
||||
|
||||
### 🐧 GNU/Linux
|
||||
- **RHEL/Fedora**: `Emerald.Legacy.Launcher-*.rpm`
|
||||
- **Debian/Ubuntu**: `Emerald.Legacy.Launcher-*.deb`
|
||||
- **Universal**: `Emerald.Legacy.Launcher-*.AppImage`
|
||||
- **Flatpak**: `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak`
|
||||
|
||||
### 🍎 macOS
|
||||
- **Intel Mac**: `Emerald.Legacy.Launcher_*.x64.dmg`
|
||||
- **M-series Mac**: `Emerald.Legacy.Launcher_*.aarch64.dmg`
|
||||
|
||||
### 🪟 Windows
|
||||
- **Setup Installer**: `Emerald.Legacy.Launcher-*.exe`
|
||||
- **MSI Installer**: `Emerald.Legacy.Launcher-*.msi`
|
||||
|
||||
# What to download?
|
||||
- `Emerald.Legacy.Launcher-*.rpm` for GNU/Linux (RHEL)
|
||||
- `Emerald.Legacy.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu)
|
||||
- `Emerald.Legacy.Launcher-*.AppImage` for GNU/Linux (Universal)
|
||||
- `Emerald.Legacy.Launcher-*_x64.dmg` for macOS (Intel)
|
||||
- `Emerald.Legacy.Launcher-*_aarch64.dmg` for macOS (M-series)
|
||||
- `Emerald.Legacy.Launcher-*.exe` for Windows (Setup)
|
||||
- `Emerald.Legacy.Launcher-*.msi` for Windows (Setup)
|
||||
---
|
||||
|
||||
## ⚠️ Windows SmartScreen
|
||||
# Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
|
||||
## 🍎 macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
---
|
||||
# macOS "Damaged" Error Fix
|
||||
The macOS builds now include automatic fixes for Gatekeeper quarantine issues. The app should launch without "application is damaged" errors.
|
||||
|
||||
releaseDraft: false
|
||||
prerelease: true
|
||||
args: ${{ matrix.args }}
|
||||
|
||||
- name: Upload all artifacts to release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
src-tauri/target/release/bundle/deb/*.deb
|
||||
src-tauri/target/release/bundle/appimage/*.AppImage
|
||||
src-tauri/target/release/bundle/rpm/*.rpm
|
||||
src-tauri/target/release/bundle/msi/*.msi
|
||||
src-tauri/target/release/bundle/nsis/*.exe
|
||||
tag_name: nightly
|
||||
name: 'Emerald Nightly'
|
||||
body: |
|
||||
# Emerald Legacy Launcher (Nightly)
|
||||
# What to download?
|
||||
- `Emerald.Legacy.Launcher-*.rpm` for GNU/Linux (RHEL)
|
||||
- `Emerald.Legacy.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu)
|
||||
- `Emerald.Legacy.Launcher-*.AppImage` for GNU/Linux (Universal)
|
||||
- `Emerald Legacy Launcher*.dmg` for macOS (Intel + M-series)
|
||||
- `Emerald.Legacy.Launcher-*.exe` for Windows (Setup)
|
||||
- `Emerald.Legacy.Launcher-*.msi` for Windows (Setup)
|
||||
- `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak` for GNU/Linux (Flatpak)
|
||||
---
|
||||
# Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
---
|
||||
# macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
draft: false
|
||||
prerelease: true
|
||||
|
||||
- name: Upload macOS DMGs to release
|
||||
if: matrix.platform == 'macos-latest'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: src-tauri/target/release/bundle/dmg/*.dmg
|
||||
tag_name: nightly
|
||||
name: 'Emerald Nightly'
|
||||
body: |
|
||||
# Emerald Legacy Launcher (Nightly)
|
||||
# What to download?
|
||||
- `Emerald.Legacy.Launcher-*.rpm` for GNU/Linux (RHEL)
|
||||
- `Emerald.Legacy.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu)
|
||||
- `Emerald.Legacy.Launcher-*.AppImage` for GNU/Linux (Universal)
|
||||
- `Emerald Legacy Launcher*.dmg` for macOS (Intel + M-series)
|
||||
- `Emerald.Legacy.Launcher-*.exe` for Windows (Setup)
|
||||
- `Emerald.Legacy.Launcher-*.msi` for Windows (Setup)
|
||||
- `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak` for GNU/Linux (Flatpak)
|
||||
---
|
||||
# Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
---
|
||||
# macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
draft: false
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
nightly-flatpak:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
needs: nightly-tauri
|
||||
needs: nightly-tauri # Wait for Tauri release to be created
|
||||
container:
|
||||
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y flatpak flatpak-builder
|
||||
|
||||
- name: setup flathub
|
||||
run: |
|
||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
sudo flatpak install -y flathub org.gnome.Sdk//48 org.gnome.Platform//48 org.freedesktop.Sdk.Extension.node20//24.08 org.freedesktop.Sdk.Extension.rust-stable//24.08
|
||||
sudo flatpak update
|
||||
|
||||
- name: setup flatpak
|
||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
submodules: true
|
||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
with:
|
||||
bundle: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak
|
||||
manifest-path: flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml
|
||||
cache-key: flatpak-builder-${{ github.sha }}
|
||||
build-bundle: true
|
||||
repository-url: https://flathub.org/repo/flathub.flatpakrepo
|
||||
repository-name: flathub
|
||||
|
||||
- name: Upload flatpak to release
|
||||
uses: softprops/action-gh-release@v2
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: "*.flatpak"
|
||||
files: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak
|
||||
tag_name: nightly
|
||||
name: 'Emerald Nightly'
|
||||
body: |
|
||||
# Emerald Legacy Launcher (Nightly)
|
||||
# What to download?
|
||||
- `Emerald.Legacy.Launcher-*.rpm` for GNU/Linux (RHEL)
|
||||
- `Emerald.Legacy.Launcher-*.deb` for GNU/Linux (Debian+Ubuntu)
|
||||
- `Emerald.Legacy.Launcher-*.AppImage` for GNU/Linux (Universal)
|
||||
- `Emerald Legacy Launcher*.dmg` for macOS (Intel + M-series)
|
||||
- `Emerald.Legacy.Launcher-*.exe` for Windows (Setup)
|
||||
- `Emerald.Legacy.Launcher-*.msi` for Windows (Setup)
|
||||
- `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak` for GNU/Linux (Flatpak)
|
||||
---
|
||||
# Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
---
|
||||
# macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
draft: false
|
||||
prerelease: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
231
.github/workflows/publish.yml
vendored
231
.github/workflows/publish.yml
vendored
@@ -15,28 +15,20 @@ jobs:
|
||||
args: '--target aarch64-apple-darwin'
|
||||
- platform: 'macos-latest'
|
||||
args: '--target x86_64-apple-darwin'
|
||||
- platform: 'ubuntu-22.04'
|
||||
args: ''
|
||||
- platform: 'windows-latest'
|
||||
args: ''
|
||||
# - platform: 'ubuntu-22.04'
|
||||
# args: ''
|
||||
# - platform: 'windows-latest'
|
||||
# args: ''
|
||||
|
||||
runs-on: ${{ matrix.platform }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Extract version
|
||||
id: get_version
|
||||
shell: bash
|
||||
run: |
|
||||
VERSION=$(node -p "require('./package.json').version")
|
||||
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "APP_VERSION=$VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: install dependencies (ubuntu only)
|
||||
if: matrix.platform == 'ubuntu-22.04'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libudev-dev
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
@@ -60,220 +52,61 @@ jobs:
|
||||
|
||||
- name: install frontend dependencies
|
||||
run: pnpm install
|
||||
- name: Build and create artifacts for macOS
|
||||
- name: Create PKG with post-install script
|
||||
if: matrix.platform == 'macos-latest'
|
||||
run: |
|
||||
# Build the app once
|
||||
pnpm build
|
||||
cd src-tauri
|
||||
cargo build --release --target ${{ matrix.args }}
|
||||
cd ..
|
||||
|
||||
# Setup target architecture name
|
||||
TARGET_ARCH=${{ matrix.args == '--target aarch64-apple-darwin' && 'aarch64-apple-darwin' || 'x86_64-apple-darwin' }}
|
||||
|
||||
# Prepare paths for .app bundle
|
||||
mkdir -p "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/MacOS"
|
||||
mkdir -p "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/Resources"
|
||||
|
||||
cp "src-tauri/target/$TARGET_ARCH/release/emerald-legacy-launcher" "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/MacOS/"
|
||||
|
||||
printf '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n <key>CFBundleExecutable</key>\n <string>emerald-legacy-launcher</string>\n <key>CFBundleIdentifier</key>\n <string>com.emerald.legacy</string>\n <key>CFBundleName</key>\n <string>Emerald Legacy Launcher</string>\n <key>CFBundleVersion</key>\n <string>${{ steps.get_version.outputs.VERSION }}</string>\n <key>CFBundleShortVersionString</key>\n <string>${{ steps.get_version.outputs.VERSION }}</string>\n <key>CFBundlePackageType</key>\n <string>APPL</string>\n <key>NSHighResolutionCapable</key>\n <true/>\n <key>LSApplicationCategoryType</key>\n <string>public.app-category.games</string>\n</dict>\n</plist>\n' > "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/Info.plist"
|
||||
|
||||
if [ -f "src-tauri/icons/icon.icns" ]; then
|
||||
cp src-tauri/icons/icon.icns "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/Resources/"
|
||||
fi
|
||||
|
||||
chmod +x "src-tauri/target/$TARGET_ARCH/release/bundle/macos/Emerald Legacy Launcher.app/Contents/MacOS/emerald-legacy-launcher"
|
||||
|
||||
# Create PKG (optional, using the built .app)
|
||||
# Create temporary directory for PKG creation
|
||||
mkdir -p pkg_temp/scripts
|
||||
cp scripts/postinstall.sh pkg_temp/scripts/
|
||||
|
||||
pkgbuild --root "src-tauri/target/$TARGET_ARCH/release/bundle/macos" \
|
||||
# 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 "${{ steps.get_version.outputs.VERSION }}" \
|
||||
--version "1.0.0" \
|
||||
--install-location "/Applications" \
|
||||
--root "$APP_PATH" \
|
||||
"Emerald-Legacy-Launcher.pkg"
|
||||
|
||||
# Create DMG
|
||||
cd "src-tauri/target/$TARGET_ARCH/release/bundle/macos"
|
||||
hdiutil create -volname "Emerald Legacy Launcher" -srcfolder "Emerald Legacy Launcher.app" -ov -format UDZO "Emerald Legacy Launcher.dmg"
|
||||
|
||||
# Move artifacts to final locations
|
||||
mkdir -p "$GITHUB_WORKSPACE/src-tauri/target/release/bundle/dmg/"
|
||||
mv "Emerald Legacy Launcher.dmg" "$GITHUB_WORKSPACE/src-tauri/target/release/bundle/dmg/"
|
||||
|
||||
mkdir -p "$GITHUB_WORKSPACE/src-tauri/target/release/bundle/macos/"
|
||||
mv "$GITHUB_WORKSPACE/Emerald-Legacy-Launcher.pkg" "$GITHUB_WORKSPACE/src-tauri/target/release/bundle/macos/"
|
||||
|
||||
- name: Build with tauri-action for Windows and Linux
|
||||
if: matrix.platform != 'macos-latest'
|
||||
uses: tauri-apps/tauri-action@v0
|
||||
# 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
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tagName: v${{ steps.get_version.outputs.VERSION }}
|
||||
releaseName: 'Emerald v${{ steps.get_version.outputs.VERSION }}'
|
||||
releaseBody: |
|
||||
# Emerald Legacy Launcher v${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
## 📥 What to download?
|
||||
|
||||
### 🐧 GNU/Linux
|
||||
- **RHEL/Fedora**: `Emerald.Legacy.Launcher-*.rpm`
|
||||
- **Debian/Ubuntu**: `Emerald.Legacy.Launcher-*.deb`
|
||||
- **Universal**: `Emerald.Legacy.Launcher-*.AppImage`
|
||||
- **Flatpak**: `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak`
|
||||
|
||||
### 🍎 macOS
|
||||
- **Intel Mac**: `Emerald.Legacy.Launcher_*.x64.dmg`
|
||||
- **M-series Mac**: `Emerald.Legacy.Launcher_*.aarch64.dmg`
|
||||
|
||||
### 🪟 Windows
|
||||
- **Setup Installer**: `Emerald.Legacy.Launcher-*.exe`
|
||||
- **MSI Installer**: `Emerald.Legacy.Launcher-*.msi`
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
|
||||
## 🍎 macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
tagName: v__VERSION__
|
||||
releaseName: 'Emerald v__VERSION__'
|
||||
releaseBody: '*pls edit me*'
|
||||
releaseDraft: true
|
||||
prerelease: false
|
||||
args: ${{ matrix.args }}
|
||||
|
||||
- name: Upload all artifacts to release
|
||||
if: matrix.platform != 'macos-latest'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
src-tauri/target/release/bundle/deb/*.deb
|
||||
src-tauri/target/release/bundle/appimage/*.AppImage
|
||||
src-tauri/target/release/bundle/rpm/*.rpm
|
||||
src-tauri/target/release/bundle/msi/*.msi
|
||||
src-tauri/target/release/bundle/nsis/*.exe
|
||||
tag_name: v${{ steps.get_version.outputs.VERSION }}
|
||||
name: 'Emerald v${{ steps.get_version.outputs.VERSION }}'
|
||||
body: |
|
||||
# Emerald Legacy Launcher v${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
## 📥 What to download?
|
||||
|
||||
### 🐧 GNU/Linux
|
||||
- **RHEL/Fedora**: `Emerald.Legacy.Launcher-*.rpm`
|
||||
- **Debian/Ubuntu**: `Emerald.Legacy.Launcher-*.deb`
|
||||
- **Universal**: `Emerald.Legacy.Launcher-*.AppImage`
|
||||
- **Flatpak**: `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak`
|
||||
|
||||
### 🍎 macOS
|
||||
- **Intel Mac**: `Emerald.Legacy.Launcher_*.x64.dmg`
|
||||
- **M-series Mac**: `Emerald.Legacy.Launcher_*.aarch64.dmg`
|
||||
|
||||
### 🪟 Windows
|
||||
- **Setup Installer**: `Emerald.Legacy.Launcher-*.exe`
|
||||
- **MSI Installer**: `Emerald.Legacy.Launcher-*.msi`
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
|
||||
## 🍎 macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
draft: true
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload macOS DMGs to release
|
||||
if: matrix.platform == 'macos-latest'
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
src-tauri/target/release/bundle/dmg/*.dmg
|
||||
src-tauri/target/release/bundle/macos/*.pkg
|
||||
tag_name: v${{ steps.get_version.outputs.VERSION }}
|
||||
name: 'Emerald v${{ steps.get_version.outputs.VERSION }}'
|
||||
body: |
|
||||
# Emerald Legacy Launcher v${{ steps.get_version.outputs.VERSION }}
|
||||
|
||||
## 📥 What to download?
|
||||
|
||||
### 🐧 GNU/Linux
|
||||
- **RHEL/Fedora**: `Emerald.Legacy.Launcher-*.rpm`
|
||||
- **Debian/Ubuntu**: `Emerald.Legacy.Launcher-*.deb`
|
||||
- **Universal**: `Emerald.Legacy.Launcher-*.AppImage`
|
||||
- **Flatpak**: `io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak`
|
||||
|
||||
### 🍎 macOS
|
||||
- **Intel Mac**: `Emerald.Legacy.Launcher_*.x64.dmg`
|
||||
- **M-series Mac**: `Emerald.Legacy.Launcher_*.aarch64.dmg`
|
||||
|
||||
### 🪟 Windows
|
||||
- **Setup Installer**: `Emerald.Legacy.Launcher-*.exe`
|
||||
- **MSI Installer**: `Emerald.Legacy.Launcher-*.msi`
|
||||
|
||||
---
|
||||
|
||||
## ⚠️ Windows SmartScreen
|
||||
This software is completely safe. Because the launcher is unsigned, you will see a "Windows protected your PC" window. To proceed:
|
||||
|
||||
1. Click the **"More info"** link under the main text.
|
||||
2. Click the **"Run anyway"** button that appears.
|
||||
|
||||
## 🍎 macOS Installation
|
||||
Download the DMG file, open it, and drag the app to Applications folder.
|
||||
If you see "app damaged" error, right-click the app → Open → confirm Open.
|
||||
Or run: `xattr -cr "/Applications/Emerald Legacy Launcher.app"`
|
||||
draft: true
|
||||
prerelease: false
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
publish-flatpak:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
needs: publish-tauri
|
||||
needs: publish-tauri # Wait for Tauri release to be created
|
||||
container:
|
||||
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08
|
||||
options: --privileged
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y flatpak flatpak-builder
|
||||
|
||||
- name: setup flathub
|
||||
run: |
|
||||
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
sudo flatpak install -y flathub org.gnome.Sdk//48 org.gnome.Platform//48 org.freedesktop.Sdk.Extension.node20//24.08 org.freedesktop.Sdk.Extension.rust-stable//24.08
|
||||
sudo flatpak update
|
||||
|
||||
- name: setup flatpak
|
||||
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
submodules: true
|
||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
|
||||
with:
|
||||
bundle: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak
|
||||
manifest-path: flatpak/io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.yml
|
||||
cache-key: flatpak-builder-${{ github.sha }}
|
||||
build-bundle: true
|
||||
repository-url: https://flathub.org/repo/flathub.flatpakrepo
|
||||
repository-name: flathub
|
||||
- uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: io.github.Emerald_Legacy_Launcher.Emerald_Legacy_Launcher.flatpak
|
||||
|
||||
Reference in New Issue
Block a user