@@ -20,7 +20,7 @@ SKIP_FLUTTER_BUILD=false
2020
2121# Version from pubspec.yaml
2222VERSION=$( grep ' ^version:' pubspec.yaml | sed ' s/version: *//;s/+.*//;s/ *$//' )
23- echo " Building Echo $VERSION "
23+ echo " Building Echo Music $VERSION "
2424
2525BUNDLE=" $REPO_ROOT /build/linux/x64/release/bundle"
2626if [ " $SKIP_FLUTTER_BUILD " = true ]; then
@@ -41,7 +41,7 @@ rm -rf "$STAGING"
4141mkdir -p " $STAGING /usr/bin/lib" " $STAGING /usr/bin/data"
4242
4343# --- Staging: binary, libs, data (all under usr/bin so engine finds them) ---
44- cp " $BUNDLE /echo" " $STAGING /usr/bin/echo"
44+ cp " $BUNDLE /echo-music " " $STAGING /usr/bin/echo-music "
4545cp -a " $BUNDLE /lib/" * " $STAGING /usr/bin/lib/" 2> /dev/null || true
4646cp -a " $BUNDLE /data/" * " $STAGING /usr/bin/data/"
4747
@@ -55,32 +55,31 @@ for lib in libmpv libmimalloc; do
5555 done
5656done
5757
58- patchelf --set-rpath ' $ORIGIN/lib' " $STAGING /usr/bin/echo"
59- chmod +x " $STAGING /usr/bin/echo"
58+ patchelf --set-rpath ' $ORIGIN/lib' " $STAGING /usr/bin/echo-music "
59+ chmod +x " $STAGING /usr/bin/echo-music "
6060
61- # .deb/.rpm: same layout, binary named echo-music to avoid conflict with coreutils
61+ # .deb/.rpm: same layout
6262PKG_STAGING=" $REPO_ROOT /build/linux_pkg_staging_named"
6363rm -rf " $PKG_STAGING "
6464mkdir -p " $PKG_STAGING /usr/bin/lib" " $PKG_STAGING /usr/bin/data" \
6565 " $PKG_STAGING /usr/share/applications" " $PKG_STAGING /usr/share/icons/hicolor/256x256/apps"
66- cp " $STAGING /usr/bin/echo" " $PKG_STAGING /usr/bin/echo-music"
6766cp -a " $STAGING /usr/bin/lib/" * " $PKG_STAGING /usr/bin/lib/"
6867cp -a " $STAGING /usr/bin/data/" * " $PKG_STAGING /usr/bin/data/"
69- cp " $REPO_ROOT /icons/Echo_nobg.png" " $PKG_STAGING /usr/share/icons/hicolor/256x256/apps/echo.png"
68+ cp " $REPO_ROOT /icons/Echo_nobg.png" " $PKG_STAGING /usr/share/icons/hicolor/256x256/apps/echo-music .png"
7069cp " $REPO_ROOT /linux/packaging/echo-music.desktop" " $PKG_STAGING /usr/share/applications/echo-music.desktop"
7170patchelf --set-rpath ' $ORIGIN/lib' " $PKG_STAGING /usr/bin/echo-music"
7271chmod +x " $PKG_STAGING /usr/bin/echo-music"
7372
7473echo " Staging ready at $STAGING "
7574
7675# --- AppImage ---
77- APPDIR=" $REPO_ROOT /build/Echo.AppDir"
76+ APPDIR=" $REPO_ROOT /build/Echo-Music .AppDir"
7877rm -rf " $APPDIR "
7978mkdir -p " $APPDIR /usr" " $APPDIR /usr/share/icons/hicolor/256x256/apps"
8079cp -a " $STAGING /usr/bin" " $APPDIR /usr/"
81- cp " $REPO_ROOT /icons/Echo_nobg.png" " $APPDIR /usr/share/icons/hicolor/256x256/apps/echo.png"
82- cp " $REPO_ROOT /icons/Echo_nobg.png" " $APPDIR /echo.png"
83- cp " $REPO_ROOT /linux/packaging/echo.desktop" " $APPDIR /echo.desktop"
80+ cp " $REPO_ROOT /icons/Echo_nobg.png" " $APPDIR /usr/share/icons/hicolor/256x256/apps/echo-music .png"
81+ cp " $REPO_ROOT /icons/Echo_nobg.png" " $APPDIR /echo-music .png"
82+ cp " $REPO_ROOT /linux/packaging/echo-music .desktop" " $APPDIR /echo-music .desktop"
8483cp " $REPO_ROOT /linux/packaging/AppRun" " $APPDIR /AppRun"
8584chmod +x " $APPDIR /AppRun"
8685
9695 chmod +x " $REPO_ROOT /build/appimagetool.AppImage"
9796 APPIMAGETOOL=" $REPO_ROOT /build/appimagetool.AppImage"
9897fi
99- ARCH=x86_64 " $APPIMAGETOOL " -n " $APPDIR " " $REPO_ROOT /build/Echo-${VERSION} -x86_64.AppImage"
100- echo " Built: build/Echo-${VERSION} -x86_64.AppImage"
98+ ARCH=x86_64 " $APPIMAGETOOL " -n " $APPDIR " " $REPO_ROOT /build/Echo-Music- ${VERSION} -x86_64.AppImage"
99+ echo " Built: build/Echo-Music- ${VERSION} -x86_64.AppImage"
101100
102101# --- .deb ---
103102if command -v dpkg-deb & > /dev/null; then
104103 PKG=" $REPO_ROOT /build/echo-music_${VERSION} _amd64"
105104 rm -rf " $PKG "
106105 mkdir -p " $PKG /DEBIAN" " $PKG /usr/share/applications" " $PKG /usr/share/icons/hicolor/256x256/apps"
107106 cp -a " $PKG_STAGING /usr/bin" " $PKG /usr/"
108- cp " $REPO_ROOT /icons/Echo_nobg.png" " $PKG /usr/share/icons/hicolor/256x256/apps/echo.png"
107+ cp " $REPO_ROOT /icons/Echo_nobg.png" " $PKG /usr/share/icons/hicolor/256x256/apps/echo-music .png"
109108 cp " $REPO_ROOT /linux/packaging/echo-music.desktop" " $PKG /usr/share/applications/echo-music.desktop"
110109 sed " s/VERSION/$VERSION /" " $REPO_ROOT /linux/packaging/control.in" > " $PKG /DEBIAN/control"
111110 dpkg-deb --root-owner-group --build " $PKG " " $REPO_ROOT /build/echo-music_${VERSION} _amd64.deb"
0 commit comments