File tree Expand file tree Collapse file tree 3 files changed +23
-3
lines changed
.github/actions/build-linux Expand file tree Collapse file tree 3 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 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 }}
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' }}
Original file line number Diff line number Diff line change 1+ import { useGetVersion } from '@/features/tauri/use-get-version'
12import { ClearCache } from './clear-cache'
23import { NetworkConfigsTable } from '@/features/network/components/network-configs-table'
34
45export 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}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments