Skip to content

Commit 7f26ea8

Browse files
authored
Update release.yml
1 parent 08cde7a commit 7f26ea8

1 file changed

Lines changed: 1 addition & 51 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -233,56 +233,7 @@ jobs:
233233
# Copy RPM to current directory
234234
cp rpmbuild/RPMS/x86_64/netmgr-*.rpm ./
235235
236-
- name: Create AppImage (Linux x86_64 only)
237-
if: matrix.os == 'ubuntu-22.04' && matrix.target == 'x86_64-linux-gnu'
238-
run: |
239-
# Download AppImage tools
240-
wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
241-
chmod +x appimagetool-x86_64.AppImage
242-
243-
# Create AppDir structure
244-
mkdir -p NetMgr.AppDir/usr/bin
245-
mkdir -p NetMgr.AppDir/usr/share/applications
246-
mkdir -p NetMgr.AppDir/usr/share/icons/hicolor/256x256/apps
247-
248-
# Copy binary
249-
cp build/netmgr NetMgr.AppDir/usr/bin/
250-
251-
# Create desktop file
252-
cat > NetMgr.AppDir/usr/share/applications/netmgr.desktop << 'EOF'
253-
[Desktop Entry]
254-
Type=Application
255-
Name=NetMgr
256-
Comment=Cross-platform network management tool
257-
Exec=netmgr
258-
Icon=netmgr
259-
Categories=Network;System;
260-
Terminal=true
261-
EOF
262-
263-
# Create AppRun
264-
cat > NetMgr.AppDir/AppRun << 'EOF'
265-
#!/bin/bash
266-
HERE="$(dirname "$(readlink -f "${0}")")"
267-
exec "${HERE}/usr/bin/netmgr" "$@"
268-
EOF
269-
chmod +x NetMgr.AppDir/AppRun
270-
271-
# Copy desktop file to root
272-
cp NetMgr.AppDir/usr/share/applications/netmgr.desktop NetMgr.AppDir/
273-
274-
# Create simple icon using text (fallback)
275-
echo "Creating icon..."
276-
cat > NetMgr.AppDir/netmgr.svg << 'EOF'
277-
<svg width="256" height="256" xmlns="http://www.w3.org/2000/svg">
278-
<rect width="256" height="256" fill="#4285f4"/>
279-
<text x="128" y="140" font-family="Arial" font-size="48" fill="white" text-anchor="middle">NetMgr</text>
280-
</svg>
281-
EOF
282-
283-
# Build AppImage
284-
VERSION=$(echo "${{ github.ref_name }}" | sed 's/^v//')
285-
./appimagetool-x86_64.AppImage NetMgr.AppDir netmgr-${VERSION}-x86_64.AppImage
236+
286237
287238
- name: Upload Release Assets
288239
uses: softprops/action-gh-release@v1
@@ -292,7 +243,6 @@ jobs:
292243
${{ matrix.name }}
293244
*.deb
294245
*.rpm
295-
*.AppImage
296246
env:
297247
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
298248

0 commit comments

Comments
 (0)