Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 30 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: install dependencies (ubuntu only)
- name: Fetch App Version from Cargo.toml
if: matrix.settings.platform == 'ubuntu-22.04'
id: drop_version
run: |
export APP_VERSION=$(grep -E '^version\s*=' src-tauri/Cargo.toml | sed -E 's/version\s*=\s*"([^"]+)"/\1/')
echo "app_version=$APP_VERSION" >> "$GITHUB_OUTPUT"

- name: Install Dependencies (Ubuntu only)
if: matrix.settings.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: setup node
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm' # Set this to npm, yarn or pnpm.

- name: install Rust stable
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
Expand All @@ -54,7 +61,7 @@ jobs:
- name: Rust cache
uses: swatinem/rust-cache@v2

- name: install frontend dependencies
- name: Install Frontend Dependencies
# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
run: npm install # change this to npm or pnpm depending on which one you use.

Expand All @@ -79,18 +86,32 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: ark-drop.AppImage
path: ./target/release/bundle/appimage/ark-drop_*_amd64.AppImage
path: ./target/release/bundle/appimage/ARK Drop_${{ steps.drop_version.outputs.app_version }}_amd64.AppImage

- name: Upload Linux Debian Binary
if: matrix.settings.platform == 'ubuntu-22.04'
uses: actions/upload-artifact@v4
with:
name: ark-drop.deb
path: ./target/release/bundle/deb/ARK Drop_${{ steps.drop_version.outputs.app_version }}_amd64.deb

- name: Upload Linux RPM Binary
if: matrix.settings.platform == 'ubuntu-22.04'
uses: actions/upload-artifact@v4
with:
name: ark-drop.rpm
path: ./target/release/bundle/rpm/ARK Drop-${{ steps.drop_version.outputs.app_version }}-1.x86_64.rpm

- name: Upload MacOS Build (ark-drop.app)
- name: Upload macOS Build (ark-drop.app)
uses: actions/upload-artifact@v4
if: matrix.settings.platform == 'macos-latest'
with:
name: ark-drop-MacOS.zip
name: ark-drop-macOS.zip
path: ./target/universal-apple-darwin/release/bundle/macos

- name: Upload MacOS Build (ark-drop.dmg)
- name: Upload macOS Build (ark-drop.dmg)
uses: actions/upload-artifact@v4
if: matrix.settings.platform == 'macos-latest'
with:
name: ark-drop-MacOS-dmg.zip
name: ark-drop-macOS-dmg.zip
path: ./target/universal-apple-darwin/release/bundle/dmg
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/src-tauri/.ark-drop-data-*
target
.vscode
.vscode
.idea
14 changes: 0 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ edition = "2021"
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "ark_drop_lib"
crate-type = ["staticlib", "cdylib", "rlib"]

[build-dependencies]
tauri-build = { version = "2.5.1", features = [] }

Expand Down Expand Up @@ -50,4 +49,3 @@ icon = [
# If you use cargo directly instead of tauri's cli you can use this feature flag to switch between tauri's `dev` and `build` modes.
# DO NOT REMOVE!!
custom-protocol = ["tauri/custom-protocol"]

Loading