From 30a34b0891e358079ae02746aaa164a4b89abaaf Mon Sep 17 00:00:00 2001 From: "don.cryptus" Date: Wed, 6 Dec 2023 18:28:27 +0100 Subject: [PATCH] add arch linux binary support --- .github/workflows/release.yml | 25 ++++++++++++++++++++++++- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed202cad..cd873a12 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -50,6 +50,7 @@ jobs: runs-on: ${{ matrix.platform }} steps: + - uses: actions/checkout@v3 - name: setup node uses: actions/setup-node@v3 @@ -63,7 +64,7 @@ jobs: sudo apt-get update wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.20_amd64.deb - sudo apt-get install -y openssl libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libxcb-shape0-dev libxcb-xfixes0-dev libxdo-dev + sudo apt-get install -y zstd openssl libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libxcb-shape0-dev libxcb-xfixes0-dev libxdo-dev - name: install frontend dependencies run: yarn install - uses: tauri-apps/tauri-action@v0 @@ -72,6 +73,28 @@ jobs: with: releaseId: ${{ needs.create-release.outputs.release_id }} + - name: Compress the binary + if: matrix.platform == 'ubuntu-latest' + run: | + BINARY_PATH=./src-tauri/target/release/clippy + PACKAGE_VERSION=$(node -p "require('./package.json').version") + zstd -z $BINARY_PATH -o clippy-$PACKAGE_VERSION.tar.zst + - name: ls current directory + if: matrix.platform == 'ubuntu-latest' + run: ls -a + - name: ls src-tauri + if: matrix.platform == 'ubuntu-latest' + run: ls -a src-tauri/target/release + - name: Upload Zstandard package to Release + if: matrix.platform == 'ubuntu-latest' + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./clippy-$PACKAGE_VERSION.tar.zst + asset_name: clippy-$PACKAGE_VERSION.tar.zst + tag: ${{ github.ref }} + overwrite: true + publish-release: permissions: contents: write diff --git a/package.json b/package.json index 5e7aff0d..16a63a92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "clippy", - "version": "1.2.0", + "version": "1.2.1", "private": true, "scripts": { "start": "vite", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 730a5bf0..072be6ac 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -879,7 +879,7 @@ dependencies = [ [[package]] name = "clippy" -version = "1.2.0" +version = "1.2.1" dependencies = [ "arboard", "base64 0.13.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index b1996307..ca108752 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "clippy" -version = "1.2.0" +version = "1.2.1" description = "Clipboard Manager built with Rust & Typescript" authors = ["Don-Cryptus"] license = "MIT" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index b6ef82bd..ef80df82 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "clippy", - "version": "1.2.0" + "version": "1.2.1" }, "tauri": { "allowlist": {