Skip to content

Commit f0cb3d0

Browse files
committed
Merge branch 'dev' into release
2 parents 8056a98 + de3bd15 commit f0cb3d0

File tree

6 files changed

+44
-47
lines changed

6 files changed

+44
-47
lines changed

.github/workflows/pre-publish-test.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ on:
55
branches:
66
- dev
77

8-
# This workflow will build your tauri app without uploading it anywhere.
9-
108
jobs:
119
test-tauri:
10+
permissions:
11+
contents: write
1212
strategy:
1313
fail-fast: false
1414
matrix:
1515
include:
16-
- platform: "macos-latest" # for Arm based macs (M1 and above).
16+
- platform: "macos-latest"
1717
args: "--target aarch64-apple-darwin"
18-
- platform: "macos-latest" # for Intel based macs.
18+
- platform: "macos-latest"
1919
args: "--target x86_64-apple-darwin"
20-
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
20+
- platform: "ubuntu-latest"
2121
args: ""
2222
- platform: "windows-latest"
2323
args: ""
@@ -26,33 +26,33 @@ jobs:
2626
steps:
2727
- uses: actions/checkout@v4
2828

29-
- name: setup node
29+
- name: Setup Node.js
3030
uses: actions/setup-node@v4
3131
with:
3232
node-version: lts/*
3333

34-
- name: setup pnpm
34+
- name: Setup pnpm
3535
uses: pnpm/action-setup@v4 # docs https://pnpm.io/continuous-integration#github-actions
3636

37-
- name: install Rust stable
38-
uses: dtolnay/rust-toolchain@stable
37+
- name: Set up Rust toolchain
38+
uses: actions-rs/toolchain@v1
3939
with:
40-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
41-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
40+
toolchain: stable
41+
override: true
42+
profile: minimal
43+
target: ${{ matrix.platform == 'macos-latest' && 'x86_64-apple-darwin' || '' }}
4244

43-
- name: install dependencies (ubuntu only)
44-
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
45+
- name: Install dependencies (Linux only)
46+
if: runner.os == 'Linux'
4547
run: |
46-
sudo apt-get update
47-
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
48-
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
49-
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
48+
sudo apt update
49+
sudo apt install -y libfuse2 libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev squashfs-tools patchelf
5050
51-
- name: install frontend dependencies
52-
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.
51+
- name: Install frontend dependencies
52+
run: pnpm install
5353

54-
# If tagName and releaseId are omitted tauri-action will only build the app and won't try to upload any assets.
55-
- uses: tauri-apps/tauri-action@v0
54+
- name: Build and NOT publish
55+
uses: tauri-apps/tauri-action@v0
5656
env:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
with:

.github/workflows/publish.yml

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches:
66
- release
77

8-
# This is the example from the readme.
9-
# On each push to the `release` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release.
10-
118
jobs:
129
publish-tauri:
1310
permissions:
@@ -16,11 +13,11 @@ jobs:
1613
fail-fast: false
1714
matrix:
1815
include:
19-
- platform: "macos-latest" # for Arm based macs (M1 and above).
16+
- platform: "macos-latest"
2017
args: "--target aarch64-apple-darwin"
21-
- platform: "macos-latest" # for Intel based macs.
18+
- platform: "macos-latest"
2219
args: "--target x86_64-apple-darwin"
23-
- platform: "ubuntu-22.04" # for Tauri v1 you could replace this with ubuntu-20.04.
20+
- platform: "ubuntu-18.04"
2421
args: ""
2522
- platform: "windows-latest"
2623
args: ""
@@ -29,38 +26,35 @@ jobs:
2926
steps:
3027
- uses: actions/checkout@v4
3128

32-
- name: setup node
29+
- name: Setup Node.js
3330
uses: actions/setup-node@v4
3431
with:
3532
node-version: lts/*
3633

37-
- name: setup pnpm
34+
- name: Setup pnpm
3835
uses: pnpm/action-setup@v4 # docs https://pnpm.io/continuous-integration#github-actions
3936

40-
- name: install Rust stable
37+
- name: Setup Rust
4138
uses: dtolnay/rust-toolchain@stable
42-
with:
43-
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
44-
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4539

46-
- name: install dependencies (ubuntu only)
47-
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
40+
- name: Install dependencies (Linux only)
41+
if: runner.os == 'Linux'
4842
run: |
49-
sudo apt-get update
50-
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
51-
# webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
52-
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.
43+
sudo apt update
44+
sudo apt install -y libfuse2 libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev squashfs-tools patchelf
5345
54-
- name: install frontend dependencies
55-
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.
46+
- name: Install frontend dependencies
47+
run: pnpm install
5648

57-
- uses: tauri-apps/tauri-action@v0
49+
- name: Build and publish
50+
uses: tauri-apps/tauri-action@v0
5851
env:
5952
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6053
with:
61-
tagName: thisweek-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
54+
tagName: thisweek-v__VERSION__
6255
releaseName: "ThisWeek v__VERSION__"
63-
releaseBody: "See the assets to download this version and install."
56+
releaseBody: "See the assets below."
6457
releaseDraft: true
6558
prerelease: false
6659
args: ${{ matrix.args }}
60+

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# to resolve problem when building in arch-linux
2+
3+
NO_STRIP=true pnpm tauri build

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ThisWeek",
33
"private": true,
4-
"version": "0.4.0",
4+
"version": "0.4.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "thisweek"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
description = "A Weekly Task Manager with Yearly Objectives"
55
authors = ["Shamim Keshani <sh.keshani@gmail.com>"]
66
edition = "2021"

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"productName": "ThisWeek",
2020
"mainBinaryName": "ThisWeek",
21-
"version": "0.4.0",
21+
"version": "0.4.1",
2222
"identifier": "com.thisweek.dev",
2323
"plugins": {},
2424
"app": {

0 commit comments

Comments
 (0)