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
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,29 @@ jobs:

- name: Stage deb for Snapcraft
run: |
mkdir -p build
mkdir -p build/extracted
DEB_FILE=$(find src-tauri/target/release/bundle/deb -name "*.deb" | head -1)
if [ -z "$DEB_FILE" ]; then
echo "Error: no .deb file found after tauri build"
exit 1
fi
cp "$DEB_FILE" build/teebot-flow.deb
echo "Staged $DEB_FILE → build/teebot-flow.deb"
echo "Found deb: $DEB_FILE"
echo "=== Deb contents ==="
dpkg -c "$DEB_FILE"
# Extract into build/extracted (snapcraft.yaml sources from here)
dpkg -x "$DEB_FILE" build/extracted
# Normalize the desktop file to the name snapcraft.yaml expects,
# regardless of how Tauri named it (e.g. "Teebot Flow.desktop").
DESKTOP=$(find build/extracted/usr/share/applications -name "*.desktop" 2>/dev/null | head -1)
if [ -z "$DESKTOP" ]; then
echo "Error: no .desktop file found inside deb"
exit 1
fi
echo "Found desktop: $DESKTOP"
if [ "$DESKTOP" != "build/extracted/usr/share/applications/teebot-flow.desktop" ]; then
mv "$DESKTOP" build/extracted/usr/share/applications/teebot-flow.desktop
echo "Renamed → build/extracted/usr/share/applications/teebot-flow.desktop"
fi

- name: Build Snap from Debian Package
run: sg lxd -c "snapcraft pack --use-lxd"
Expand Down
3 changes: 1 addition & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@ apps:
parts:
teebot-flow:
plugin: dump
source: build/teebot-flow.deb
source-type: deb
source: build/extracted
12 changes: 6 additions & 6 deletions src/lib/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ export const getDownloadLink = (version: string, filename: string) => {

const ASSET_NAMES = {
windows: {
exe: (version: string) => `Teebot-Flow_${version}_x64-setup.exe`,
msi: (version: string) => `Teebot-Flow_${version}_x64_en-US.msi`,
exe: (version: string) => `Teebot.Flow_${version}_x64-setup.exe`,
msi: (version: string) => `Teebot.Flow_${version}_x64_en-US.msi`,
},
linux: {
appImage: (version: string) => `teebot-flow_${version}_amd64.AppImage`,
deb: (version: string) => `teebot-flow_${version}_amd64.deb`,
appImage: (version: string) => `Teebot Flow_${version}_amd64.AppImage`,
deb: (version: string) => `Teebot Flow_${version}_amd64.deb`,
},
macOS: {
aarch64: (version: string) => `Teebot-Flow_${version}_aarch64.dmg`,
x64: (version: string) => `Teebot-Flow_${version}_x64.dmg`,
aarch64: (version: string) => `Teebot.Flow_${version}_aarch64.dmg`,
x64: (version: string) => `Teebot.Flow_${version}_x64.dmg`,
},
};

Expand Down
Loading