mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-04 13:26:00 -04:00
* Normalize PATH and XDG envvars on Linux * Fix normalize_xdg_environment * Replace custom Desktop file parsers with Glib * Fix AppImage env influencing external apps - Normalize GStream plugin path * Fix macos pulling linux deps * Attempt to fix gnome apps failing to launch - Fix incorrect logic in `normalize_pathlist` * Ensure empty envvars are not set * Revert AppImage ovewritten GTK specific variables - `normalize_pathlist` now prefers entries with less priority when dealing with repeated entries, this is not compatible with the default behavior, but it is a more sane approach IMHO * Remove 32-bit libs from release CI build host * Remove 32-bit from github runner 2 attempt - Remove deprecated vscode config * Remove libc6-i386 * [ENG-916] Implement `Open With` logic compatible with macOS < 12 * Add some missing gstreamer deps in Linux * Replace opener with Glib API * Fix reveal opening file instead of dir - Improve Open With logic in Windows - Expose functions to test if app is in a flatpak, snap or appimage --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
97 lines
3.6 KiB
YAML
97 lines
3.6 KiB
YAML
name: Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
# NOTE: For Linux builds, we can only build with Ubuntu. It should be the oldest base system we intend to support. See PR-759 & https://tauri.app/v1/guides/building/linux for reference.
|
|
|
|
jobs:
|
|
desktop-main:
|
|
strategy:
|
|
fail-fast: true
|
|
matrix:
|
|
settings:
|
|
- host: macos-latest
|
|
target: x86_64-apple-darwin
|
|
bundles: dmg
|
|
- host: macos-latest
|
|
target: aarch64-apple-darwin
|
|
bundles: dmg
|
|
- host: windows-latest
|
|
target: x86_64-pc-windows-msvc
|
|
bundles: msi
|
|
# - host: windows-latest
|
|
# target: aarch64-pc-windows-msvc
|
|
- host: ubuntu-20.04
|
|
target: x86_64-unknown-linux-gnu
|
|
bundles: appimage
|
|
# - host: ubuntu-20.04
|
|
# target: x86_64-unknown-linux-musl
|
|
# - host: ubuntu-20.04
|
|
# target: aarch64-unknown-linux-gnu
|
|
# - host: ubuntu-20.04
|
|
# target: aarch64-unknown-linux-musl
|
|
# - host: ubuntu-20.04
|
|
# target: armv7-unknown-linux-gnueabihf
|
|
name: Desktop - Main ${{ matrix.settings.target }}
|
|
runs-on: ${{ matrix.settings.host }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Remove 32-bit libs
|
|
if: ${{ runner.os == 'Linux' }}
|
|
run: |
|
|
dpkg -l | grep i386
|
|
sudo apt-get purge --allow-remove-essential libc6-i386 ".*:i386"
|
|
sudo dpkg --remove-architecture i386
|
|
|
|
- name: Install Apple API key
|
|
if: ${{ runner.os == 'macOS' }}
|
|
run: |
|
|
mkdir -p ~/.appstoreconnect/private_keys/
|
|
cd ~/.appstoreconnect/private_keys/
|
|
echo ${{ secrets.APPLE_API_KEY_BASE64 }} >> AuthKey_${{ secrets.APPLE_API_KEY }}.p8.base64
|
|
base64 --decode AuthKey_${{ secrets.APPLE_API_KEY }}.p8.base64 -o AuthKey_${{ secrets.APPLE_API_KEY }}.p8
|
|
rm AuthKey_${{ secrets.APPLE_API_KEY }}.p8.base64
|
|
|
|
- name: Install Codesigning Certificate
|
|
if: ${{ runner.os == 'macOS' }}
|
|
uses: apple-actions/import-codesign-certs@v2
|
|
with:
|
|
p12-file-base64: ${{ secrets.APPLE_CERTIFICATE }}
|
|
p12-password: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
|
|
- name: Setup Node.js, pnpm and dependencies
|
|
uses: ./.github/actions/setup-pnpm
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Setup System and Rust
|
|
uses: ./.github/actions/setup-system
|
|
env:
|
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
targets: ${{ matrix.settings.target }}
|
|
|
|
- name: Build
|
|
run: |
|
|
pnpm desktop build --ci -v --target ${{ matrix.settings.target }} --bundles ${{ matrix.settings.bundles }},updater
|
|
env:
|
|
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
|
|
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
|
ENABLE_CODE_SIGNING: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
|
|
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
|
|
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
|
|
APPLE_PROVIDER_SHORT_NAME: ${{ secrets.APPLE_PROVIDER_SHORT_NAME }}
|
|
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
|
|
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
|
|
|
|
- name: Publish Artifacts
|
|
uses: ./.github/actions/publish-artifacts
|
|
with:
|
|
target: ${{ matrix.settings.target }}
|
|
profile: release
|