Skip to content

Commit

Permalink
Update to tauri v2.0.0-beta.22 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjousse authored May 30, 2024
1 parent fa7307a commit ebb297e
Show file tree
Hide file tree
Showing 19 changed files with 7,627 additions and 1,957 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-20.04" # for Tauri v1 you could replace this with ubuntu-20.04.
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
args: ""
- platform: "windows-latest"
args: ""
Expand All @@ -26,7 +26,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -35,10 +35,10 @@ jobs:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04' # This must match the platform value defined above.
if: matrix.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 libappindicator3-dev librsvg2-dev patchelf libasound2-dev
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/manual-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 20

- name: get version
run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-20.04" # for Tauri v1 you could replace this with ubuntu-20.04.
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
args: ""
- platform: "windows-latest"
args: ""
Expand All @@ -62,7 +62,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -71,10 +71,10 @@ jobs:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04' # This must match the platform value defined above.
if: matrix.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 libappindicator3-dev librsvg2-dev patchelf libasound2-dev
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"
- platform: "ubuntu-20.04" # for Tauri v1 you could replace this with ubuntu-20.04.
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
args: ""
- platform: "windows-latest"
args: ""
Expand All @@ -32,7 +32,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: 20

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
Expand All @@ -41,10 +41,10 @@ jobs:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}

- name: install dependencies (ubuntu only)
if: matrix.platform == 'ubuntu-20.04' # This must match the platform value defined above.
if: matrix.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 libappindicator3-dev librsvg2-dev patchelf libasound2-dev
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf libasound2-dev
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

Expand Down
22 changes: 9 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
FROM rust:buster
FROM ubuntu:22.04

RUN apt-get update && apt-get install -y \
libwebkit2gtk-4.0-dev \
build-essential \
curl \
wget \
file \
libssl-dev \
libgtk-3-dev \
libayatana-appindicator3-dev\
librsvg2-dev\
libasound2-dev
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
libasound2-dev \
nodejs \
npm

RUN curl -sL https://deb.nodesource.com/setup_current.x | bash -
RUN apt-get install -y nodejs
RUN curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

ADD . /app
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Maintainer: Vincent Jousse <[email protected]> - https://vincent.jousse.org
pkgname=pomodorolm-bin
pkgver=0.0.3
pkgver=0.1.0
pkgrel=1
pkgdesc="Multi-platform pomodoro tracker with a nice looking UI, inspired by Pomotroid"
arch=('x86_64')
Expand All @@ -9,7 +9,7 @@ license=('MIT')
depends=('alsa-lib' 'gtk3' 'hicolor-icon-theme' 'glibc' 'webkit2gtk' 'libsoup' 'cairo' 'glib2' 'pango' 'gcc-libs' 'gdk-pixbuf2')
provides=('pomodorolm')
source=("https://github.com/vjousse/pomodorolm/releases/download/app-v$pkgver/pomodorolm_${pkgver}_amd64.deb")
sha256sums=('5dcc1f7b42346d5776280ca957bcb2a38de1a1fd172b23d478c338a14d835af3')
sha256sums=('77188962ecd67605be97e47dbcdfa27a8bc643ba6591c7ed82d85a742d8d7997')

package() {
bsdtar -xf "$srcdir/data.tar.gz" -C "$pkgdir"
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:
build-linux:
build:
Expand All @@ -11,4 +10,4 @@ services:
TAURI_PRIVATE_KEY: ${TAURI_PRIVATE_KEY}
TAURI_KEY_PASSWORD: ${TAURI_KEY_PASSWORD}
APPLE_SIGNING_IDENTITY: ${APPLE_SIGNING_IDENTITY}
command: "npm run tauri build -- --target x86_64-unknown-linux-gnu --debug"
command: "npm run tauri build -- --target x86_64-unknown-linux-gnu"
Loading

0 comments on commit ebb297e

Please sign in to comment.