File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed
.github/actions/build-linux Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 3030 npm run tauri build
3131 shell : bash
3232
33+ - name : Create icons and desktop file
34+ run : |
35+ chmod +x ./scripts/snap/create-desktop-file.sh
36+ ./scripts/snap/create-desktop-file.sh ${{ github.workspace }}/src-tauri/target/release
37+ cp ${{ github.workspace }}/src-tauri/icons ${{ github.workspace }}/src-tauri/target/release/icons -r
38+ shell : bash
39+
3340 - name : Zip to preserve permissions
3441 run : |
3542 cd src-tauri/target/release
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Ensure the script fails on errors
4+ set -e
5+
6+ # Check if the correct number of arguments are passed
7+ if [ " $# " -ne 1 ]; then
8+ echo " Usage: $0 <release_dir>"
9+ exit 1
10+ fi
11+
12+ # Assign arguments to variables
13+ RELEASE_DIR=" $1 "
14+
15+ # Create the algokit-explorer.desktop file
16+ cat > " ${RELEASE_DIR} /algokit-explorer.desktop" << EOF
17+ [Desktop Entry]
18+ Name=algokit-explorer
19+ Exec=algokit-explorer %U
20+ Terminal=false
21+ Icon=${SNAP} /icons/128x128.png
22+ Type=Application
23+ Comment=algokit-explorer
24+ EOF
25+
26+ echo " algokit-explorer.desktop has been created at ${RELEASE_DIR} /algokit-explorer.desktop"
Original file line number Diff line number Diff line change 55
66# Check if the correct number of arguments are passed
77if [ " $# " -ne 4 ]; then
8- echo " Usage: $0 <destination_directory> <release_tag> <artifact_path > <grade >"
8+ echo " Usage: $0 <destination_directory> <release_tag> <grade > <source_dir >"
99 exit 1
1010fi
1111
You can’t perform that action at this time.
0 commit comments