Skip to content

Commit

Permalink
[*] update normally
Browse files Browse the repository at this point in the history
  • Loading branch information
heng30 committed Sep 2, 2024
1 parent 7d493be commit cc177fd
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 34 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
name: android

on: [push]

# on:
# push:
# tags:
# - "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write

Expand Down Expand Up @@ -68,7 +62,7 @@ jobs:
run: |
binary_name=`cat target/app-name`
output="$binary_name-${{ env.VERSION }}-aarch64-linux-android.apk"
cp -f target/release/apk/$binary_name.apk $output
cp -rf target/release/apk/$binary_name.apk $output
echo "ASSET=$output" >> $GITHUB_ENV
- run: echo "end packing..."

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: linux

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
on: [push]

permissions:
contents: write
Expand Down Expand Up @@ -40,10 +36,12 @@ jobs:
- run: make app-name
- name: Export package
shell: bash
if: startsWith(github.ref, 'refs/tags/')
run: |
binary_name=`cat target/app-name`
output="$binary_name-${{ env.VERSION }}-x86_64-linux.tar.gz"
tar -zcf $output target/release/$binary_name
cp -rf target/release/$binary_name $binary_name
tar -zcf $output $binary_name
echo "ASSET=$output" >> $GITHUB_ENV
- run: echo "end packing..."

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: macos

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
on: [push]

permissions:
contents: write
Expand Down Expand Up @@ -38,10 +34,12 @@ jobs:
- run: make app-name
- name: Export package
shell: bash
if: startsWith(github.ref, 'refs/tags/')
run: |
binary_name=`cat target/app-name`
output="$binary_name-${{ env.VERSION }}-x86_64-darwin.tar.gz"
tar -zcf $output target/release/$binary_name
cp -rf target/release/$binary_name $binary_name
tar -zcf $output $binary_name
echo "ASSET=$output" >> $GITHUB_ENV
- run: echo "end packing..."

Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: web

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
on: [push]

permissions:
contents: write
Expand Down Expand Up @@ -43,10 +39,12 @@ jobs:
- run: make app-name
- name: Export package
shell: bash
if: startsWith(github.ref, 'refs/tags/')
run: |
binary_name=`cat target/app-name`
output="$binary_name-${{ env.VERSION }}-web.tar.gz"
tar -zcf $output web/dist
cp -rf web/dist dist
tar -zcf $output dist
echo "ASSET=$output" >> $GITHUB_ENV
- run: echo "end packing..."

Expand Down
16 changes: 9 additions & 7 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: windows

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
on: [push]

permissions:
contents: write
Expand All @@ -30,14 +26,20 @@ jobs:
- run: make desktop-build-release
- run: echo "end build..."

- name: Get the release version from the tag
shell: bash
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- run: echo "start packing..."
- run: make app-name
- name: Export package
shell: bash
if: startsWith(github.ref, 'refs/tags/')
run: |
binary_name=`cat target/app-name`
output="$binary_name-${{ env.VERSION }}-x86_64-linux.tar.gz"
tar -zcf $output target/release/$binary_name.exe
output="$binary_name-${{ env.VERSION }}-x86_64-windows.tar.gz"
cp -rf target/release/$binary_name.exe $binary_name.exe
tar -zcf $output $binary_name.exe
echo "ASSET=$output" >> $GITHUB_ENV
- run: echo "end packing..."

Expand Down
2 changes: 1 addition & 1 deletion ui/panel/desktop/home.slint
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export component Home inherits VerticalLayout {
Rectangle {
lp := LeftPanel {
x: 0;
width: Math.max(root.width * 0.2, 500px);
width: Math.max(root.width * 0.2, Theme.title3-font-size * 20);
}

mp := Rectangle {
Expand Down
3 changes: 2 additions & 1 deletion ui/panel/setting/desktop.slint
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ component Setting inherits Rectangle {

lp := LeftPanel {
x: 0;
width: Math.max(root.width * 0.3, 160px);
width: Math.max(root.width * 0.3, Theme.title3-font-size * 10);

switch(previous-index, current-index) => {
if (!root.save(previous-index)) {
return false;
Expand Down

0 comments on commit cc177fd

Please sign in to comment.