Skip to content

Commit

Permalink
add arch linux binary support
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Dec 6, 2023
1 parent bce199a commit 30a34b0
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
25 changes: 24 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:

runs-on: ${{ matrix.platform }}
steps:

- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clippy",
"version": "1.2.0",
"version": "1.2.1",
"private": true,
"scripts": {
"start": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "clippy",
"version": "1.2.0"
"version": "1.2.1"
},
"tauri": {
"allowlist": {
Expand Down

0 comments on commit 30a34b0

Please sign in to comment.