Skip to content

Commit 1b04196

Browse files
committed
CI instructions fixed
1 parent 349ff2b commit 1b04196

5 files changed

Lines changed: 42 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ jobs:
5757
--output "./publish" \
5858
-p:PublishSingleFile=true \
5959
-p:PublishReadyToRun=true \
60-
-p:IncludeNativeLibrariesForSelfExtract=true
60+
-p:IncludeNativeLibrariesForSelfExtract=true \
61+
-p:Version="${GITHUB_REF_NAME#v}"
6162
6263
# Rename the output file to the desired asset name
6364
- name: Rename artifact
@@ -75,6 +76,8 @@ jobs:
7576
mkdir -p AppDir/usr/bin
7677
mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
7778
mkdir -p AppDir/usr/share/applications
79+
mkdir -p AppDir/usr/share/metainfo
80+
cp appimage/openssh-gui.appdata.xml AppDir/usr/share/metainfo/openssh-gui.appdata.xml
7881
7982
cp ./publish/${{ matrix.asset_name }} AppDir/usr/bin/openssh-gui
8083
chmod +x AppDir/usr/bin/openssh-gui
@@ -85,6 +88,8 @@ jobs:
8588
cp openssh-gui.desktop AppDir/usr/share/applications/openssh-gui.desktop
8689
8790
cp appimage/AppRun AppDir/AppRun
91+
sed -i "s|<release version=\"0.0.0\" date=\"1970-01-01\"/>|<release version=\"${GITHUB_REF_NAME#v}\" date=\"$(date +%Y-%m-%d)\"/>|" \
92+
AppDir/usr/share/metainfo/openssh-gui.appdata.xml
8893
chmod +x AppDir/AppRun
8994
9095
# Build AppImage

.github/workflows/staging.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ jobs:
7575
--output "./publish" \
7676
-p:PublishSingleFile=true \
7777
-p:PublishReadyToRun=true \
78-
-p:IncludeNativeLibrariesForSelfExtract=true
78+
-p:IncludeNativeLibrariesForSelfExtract=true \
79+
-p:Version="${{ env.VERSION }}"
7980
8081
- name: Rename artifact
8182
run: mv ./publish/OpenSSH_GUI${{ matrix.asset_extension }} ./publish/${{ matrix.asset_name }}${{ matrix.asset_extension }}
@@ -90,6 +91,8 @@ jobs:
9091
mkdir -p AppDir/usr/bin
9192
mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
9293
mkdir -p AppDir/usr/share/applications
94+
mkdir -p AppDir/usr/share/metainfo
95+
cp appimage/openssh-gui.appdata.xml AppDir/usr/share/metainfo/openssh-gui.appdata.xml
9396
9497
cp ./publish/${{ matrix.asset_name }} AppDir/usr/bin/openssh-gui
9598
chmod +x AppDir/usr/bin/openssh-gui
@@ -100,6 +103,9 @@ jobs:
100103
cp openssh-gui.desktop AppDir/usr/share/applications/openssh-gui.desktop
101104
102105
cp appimage/AppRun AppDir/AppRun
106+
APPSTREAM_VERSION="${{ env.VERSION }//+/~}"
107+
sed -i "s|<release version=\"0.0.0\" date=\"1970-01-01\"/>|<release version=\"${APPSTREAM_VERSION}\" date=\"$(date +%Y-%m-%d)\"/>|" \
108+
AppDir/usr/share/metainfo/openssh-gui.appdata.xml
103109
chmod +x AppDir/AppRun
104110
105111
ARCH=x86_64 ./appimagetool --appimage-extract-and-run AppDir OpenSSH-GUI-nightly-x86_64.AppImage

appimage/openssh-gui.appdata.xml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>openssh-gui</id>
4+
<metadata_license>MIT</metadata_license>
5+
<project_license>MIT</project_license>
6+
7+
<name>OpenSSH GUI</name>
8+
<summary>A graphical user interface for OpenSSH key management</summary>
9+
10+
<description>
11+
<p>
12+
OpenSSH GUI provides a graphical interface for managing OpenSSH keys,
13+
known hosts, and related configuration.
14+
</p>
15+
</description>
16+
17+
<launchable type="desktop-id">openssh-gui.desktop</launchable>
18+
19+
<url type="homepage">https://github.com/frequency403/OpenSSH-GUI</url>
20+
<url type="bugtracker">https://github.com/frequency403/OpenSSH-GUI/issues</url>
21+
22+
<releases>
23+
<release version="0.0.0" date="1970-01-01"/>
24+
</releases>
25+
26+
<content_rating type="oars-1.1"/>
27+
</component>

openssh-gui-git/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ depends=('dotnet-runtime-10.0')
1010
makedepends=('git' 'dotnet-sdk-10.0')
1111
provides=('openssh-gui')
1212
conflicts=('openssh-gui' 'openssh-gui-bin' 'openssh-gui-nightly')
13-
source=("git+${url}.git#branch=develop")
13+
source=("git+${url}.git#branch=development")
1414
sha256sums=('SKIP')
1515

1616
pkgver() {

openssh-gui.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Name=OpenSSH GUI
55
Comment=A GUI for OpenSSH configuration and management
66
Exec=openssh-gui
77
Icon=openssh-gui
8-
Categories=Utility;Network;
8+
Categories=Network;RemoteAccess;
99
Terminal=false
1010
StartupWMClass=OpenSSH_GUI

0 commit comments

Comments
 (0)