Skip to content

Commit 8a718cc

Browse files
committed
Remove .idea directory and obsolete IDE metadata files; add PKGBUILD for AUR
1 parent 6bd2a08 commit 8a718cc

50 files changed

Lines changed: 136 additions & 6223 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ jobs:
7878
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
7979

8080
steps:
81+
- name: Checkout repository
82+
uses: actions/checkout@v4
83+
8184
# Download all artifacts (from the matrix builds) into a single directory
8285
- name: Download all build artifacts
8386
uses: actions/download-artifact@v4
@@ -87,6 +90,12 @@ jobs:
8790
- name: Display structure of downloaded files
8891
run: ls -R artifacts
8992

93+
- name: Prepare extra assets
94+
run: |
95+
cp openssh-gui.desktop artifacts/
96+
cp OpenSSH_GUI/Assets/appicon.png artifacts/
97+
cp LICENSE artifacts/
98+
9099
# Create a single release and upload all files from the 'artifacts' directory
91100
- name: Create Release and Upload Assets
92101
uses: softprops/action-gh-release@v2
@@ -96,4 +105,55 @@ jobs:
96105
# All files downloaded into the 'artifacts' directory will be uploaded
97106
files: "artifacts/**/*"
98107
# Automatically generate the release body from commits since the last tag
99-
generate_release_notes: true
108+
generate_release_notes: true
109+
110+
deploy-aur:
111+
name: Update AUR Packages
112+
runs-on: ubuntu-latest
113+
needs: release
114+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
115+
steps:
116+
- name: Checkout Repository
117+
uses: actions/checkout@v4
118+
with:
119+
fetch-depth: 0
120+
121+
- name: Download Linux Artifact
122+
uses: actions/download-artifact@v4
123+
with:
124+
name: OpenSSH-GUI-linux-x64
125+
path: ./
126+
127+
- name: Update PKGBUILD for openssh-gui-bin
128+
run: |
129+
VERSION=${GITHUB_REF_NAME#v}
130+
SHA_BIN=$(sha256sum OpenSSH-GUI-linux-x64 | cut -d' ' -f1)
131+
SHA_ICON=$(sha256sum OpenSSH_GUI/Assets/appicon.png | cut -d' ' -f1)
132+
SHA_DESKTOP=$(sha256sum openssh-gui.desktop | cut -d' ' -f1)
133+
SHA_LICENSE=$(sha256sum LICENSE | cut -d' ' -f1)
134+
135+
sed -i "s/^pkgver=.*/pkgver=$VERSION/" openssh-gui-bin/PKGBUILD
136+
sed -i "s/sha256sums=.*/sha256sums=('$SHA_BIN' '$SHA_ICON' '$SHA_DESKTOP' '$SHA_LICENSE')/" openssh-gui-bin/PKGBUILD
137+
138+
# Also update openssh-gui-git pkgver for consistency
139+
sed -i "s/^pkgver=.*/pkgver=$VERSION/" openssh-gui-git/PKGBUILD
140+
141+
- name: Update AUR (openssh-gui-bin)
142+
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
143+
with:
144+
pkgname: openssh-gui-bin
145+
pkgbuild: ./openssh-gui-bin/PKGBUILD
146+
commit_username: ${{ github.repository_owner }}
147+
commit_email: ${{ github.repository_owner }}@users.noreply.github.com
148+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
149+
commit_message: "Update to ${{ github.ref_name }}"
150+
151+
- name: Update AUR (openssh-gui-git)
152+
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
153+
with:
154+
pkgname: openssh-gui-git
155+
pkgbuild: ./openssh-gui-git/PKGBUILD
156+
commit_username: ${{ github.repository_owner }}
157+
commit_email: ${{ github.repository_owner }}@users.noreply.github.com
158+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
159+
commit_message: "Update to ${{ github.ref_name }}"

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ bin/
22
obj/
33
/packages/
44
riderModule.iml
5-
/_ReSharper.Caches/
5+
/_ReSharper.Caches/
6+
.idea/
7+
publish

.idea/.gitignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

.idea/.idea.OpenSSHA-GUI/.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/.idea.OpenSSHA-GUI/.idea/projectSettingsUpdater.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/.idea.OpenSSHA-GUI/.idea/workspace.xml

Lines changed: 0 additions & 135 deletions
This file was deleted.

.idea/.idea.OpenSSH_GUI/.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/.idea.OpenSSH_GUI/.idea/avalonia.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.idea/.idea.OpenSSH_GUI/.idea/copilot.data.migration.agent.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

.idea/.idea.OpenSSH_GUI/.idea/copilot.data.migration.ask.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)