Skip to content

Commit 5ead859

Browse files
committed
only build appimage + show version
1 parent d75c215 commit 5ead859

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

.github/actions/build-linux/action.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ runs:
7575

7676
- name: Build tauri app
7777
run: |
78-
npm run tauri build
78+
npm run tauri build -- --bundles appimage
7979
shell: bash
8080
env:
8181
TAURI_SIGNING_PRIVATE_KEY: ${{ inputs.tauri-signing-private-key }}
@@ -89,8 +89,6 @@ runs:
8989
with:
9090
fail_on_unmatched_files: true
9191
files: |
92-
src-tauri/target/release/bundle/deb/algokit-lora*.deb
93-
src-tauri/target/release/bundle/rpm/algokit-lora*.rpm
9492
src-tauri/target/release/bundle/appimage/algokit-lora*.AppImage
9593
tag_name: ${{ inputs.release-tag }}
9694
prerelease: ${{ inputs.production-release != 'true' }}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
import { useGetVersion } from '@/features/tauri/use-get-version'
12
import { ClearCache } from './clear-cache'
23
import { NetworkConfigsTable } from '@/features/network/components/network-configs-table'
34

45
export function Settings() {
6+
const version = useGetVersion()
7+
58
return (
69
<div className="flex flex-col space-y-8">
710
<NetworkConfigsTable />
811
<ClearCache />
12+
{version && (
13+
<div className="flex flex-col items-end">
14+
<p>Version: {version}</p>
15+
</div>
16+
)}
917
</div>
1018
)
1119
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { getVersion } from '@tauri-apps/api/app'
2+
import { useEffect, useState } from 'react'
3+
4+
export const useGetVersion = () => {
5+
const [version, setVersion] = useState<string | undefined>(undefined)
6+
7+
useEffect(() => {
8+
if (window.__TAURI_INTERNALS__) {
9+
getVersion().then((v) => setVersion(v))
10+
}
11+
}, [])
12+
13+
return version
14+
}

0 commit comments

Comments
 (0)