Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,26 +89,30 @@ jobs:
merge-multiple: true
- name: List downloaded artifacts
run: find artifacts -type f | sort
- name: Rename artifacts
- name: Flatten and rename artifacts
run: |
VERSION="${{ needs.get-version.outputs.version }}"
cd artifacts
for f in *_aarch64.dmg; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-mac-arm.dmg"; done
for f in *_x64.dmg; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-mac-intel.dmg"; done
for f in *_x64-setup.exe; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-windows.exe"; done
for f in *_x64_en-US.msi; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-windows.msi"; done
for f in *_amd64.deb; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-linux.deb"; done
for f in *.rpm; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-linux.rpm"; done
for f in *.AppImage; do [ -f "$f" ] && mv "$f" "Conduit-${VERSION}-linux.AppImage"; done
echo "Renamed artifacts:"
# Flatten: move all nested files to current directory
find . -mindepth 2 -type f -exec mv {} . \;
find . -mindepth 1 -type d -empty -delete
# Rename to friendly names
for f in *_aarch64.dmg; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_mac-arm.dmg"; done
for f in *_x64.dmg; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_mac-intel.dmg"; done
for f in *_x64-setup.exe; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_windows.exe"; done
for f in *_x64_en-US.msi; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_windows.msi"; done
for f in *_amd64.deb; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_linux.deb"; done
for f in *.rpm; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_linux.rpm"; done
for f in *.AppImage; do [ -f "$f" ] && mv "$f" "conduit_${VERSION}_linux.AppImage"; done
echo "Final artifacts:"
ls -la
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ needs.get-version.outputs.version }}"
TAG="v${VERSION}"
FILES=$(find artifacts -type f \( -name '*.dmg' -o -name '*.msi' -o -name '*-setup.exe' -o -name '*.deb' -o -name '*.rpm' -o -name '*.AppImage' \))
FILES=$(find artifacts -type f \( -name '*.dmg' -o -name '*.msi' -o -name '*.exe' -o -name '*.deb' -o -name '*.rpm' -o -name '*.AppImage' \))
if [ -z "$FILES" ]; then
echo "::error::No release artifacts found"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Download the `windows-x64` installer and run it. Windows may show a SmartScreen
Download the `linux-x64` AppImage or deb file. For AppImage, make it executable with `chmod +x` and run it. For deb, install with your package manager.

> [!NOTE]
> I only currently have a Mac with an ARM processor easily available. Please open an issue if it doesn't work on your OS.
> I only currently have a Mac with an ARM processor easily available. Please open an issue if it doesn't work on your OS. I am new to the whole desktop app game.

## Settings

Expand Down
Loading