mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
Remove appimage.
This commit is contained in:
78
.github/workflows/main.yml
vendored
78
.github/workflows/main.yml
vendored
@@ -149,45 +149,6 @@ jobs:
|
|||||||
sudo rm -rf build/linux/arch/pkg
|
sudo rm -rf build/linux/arch/pkg
|
||||||
sudo rm -rf build/linux/arch/src
|
sudo rm -rf build/linux/arch/src
|
||||||
sudo rm -rf build/linux/arch/PKGBUILD
|
sudo rm -rf build/linux/arch/PKGBUILD
|
||||||
- name: Build AppImage
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -y libfuse2
|
|
||||||
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage"
|
|
||||||
chmod +x appimagetool
|
|
||||||
|
|
||||||
mkdir -p Venera.AppDir
|
|
||||||
cp -r build/linux/x64/release/bundle/* Venera.AppDir/
|
|
||||||
|
|
||||||
cat > Venera.AppDir/venera.desktop << EOF
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=Venera
|
|
||||||
Exec=venera
|
|
||||||
Icon=venera
|
|
||||||
Type=Application
|
|
||||||
Categories=Utility;
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cp assets/app_icon.png Venera.AppDir/venera.png
|
|
||||||
|
|
||||||
cat > Venera.AppDir/AppRun << EOF
|
|
||||||
#!/bin/sh
|
|
||||||
HERE=\$(dirname \$(readlink -f "\${0}"))
|
|
||||||
export PATH="\${HERE}"/usr/bin/:"\${HERE}"/usr/sbin/:"\${HERE}"/usr/games/:"\${HERE}"/bin/:"\${HERE}"/sbin/:\${PATH}
|
|
||||||
export LD_LIBRARY_PATH="\${HERE}"/usr/lib/:\${LD_LIBRARY_PATH}
|
|
||||||
export XDG_DATA_DIRS="\${HERE}"/usr/share/:\${XDG_DATA_DIRS}
|
|
||||||
exec "\${HERE}"/venera "\$@"
|
|
||||||
EOF
|
|
||||||
chmod +x Venera.AppDir/AppRun
|
|
||||||
|
|
||||||
APP_VERSION=$(grep "version:" pubspec.yaml | cut -d':' -f2 | tr -d ' ')
|
|
||||||
./appimagetool Venera.AppDir Venera-${APP_VERSION}-x86_64.AppImage
|
|
||||||
|
|
||||||
mkdir -p build/linux/appimage
|
|
||||||
mv Venera-${APP_VERSION}-x86_64.AppImage build/linux/appimage/
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: appimage_build
|
|
||||||
path: build/linux/appimage
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: deb_build
|
name: deb_build
|
||||||
@@ -210,45 +171,6 @@ jobs:
|
|||||||
sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1
|
sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1
|
||||||
dart pub global activate flutter_to_debian
|
dart pub global activate flutter_to_debian
|
||||||
- run: python3 debian/build.py arm64
|
- run: python3 debian/build.py arm64
|
||||||
- name: Build AppImage
|
|
||||||
run: |
|
|
||||||
sudo apt-get install -y libfuse2
|
|
||||||
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage"
|
|
||||||
chmod +x appimagetool
|
|
||||||
|
|
||||||
mkdir -p Venera.AppDir
|
|
||||||
cp -r build/linux/arm64/release/bundle/* Venera.AppDir/
|
|
||||||
|
|
||||||
cat > Venera.AppDir/venera.desktop << EOF
|
|
||||||
[Desktop Entry]
|
|
||||||
Name=Venera
|
|
||||||
Exec=venera
|
|
||||||
Icon=venera
|
|
||||||
Type=Application
|
|
||||||
Categories=Utility;
|
|
||||||
EOF
|
|
||||||
|
|
||||||
cp assets/app_icon.png Venera.AppDir/venera.png
|
|
||||||
|
|
||||||
cat > Venera.AppDir/AppRun << EOF
|
|
||||||
#!/bin/sh
|
|
||||||
HERE=\$(dirname \$(readlink -f "\${0}"))
|
|
||||||
export PATH="\${HERE}"/usr/bin/:"\${HERE}"/usr/sbin/:"\${HERE}"/usr/games/:"\${HERE}"/bin/:"\${HERE}"/sbin/:\${PATH}
|
|
||||||
export LD_LIBRARY_PATH="\${HERE}"/usr/lib/:\${LD_LIBRARY_PATH}
|
|
||||||
export XDG_DATA_DIRS="\${HERE}"/usr/share/:\${XDG_DATA_DIRS}
|
|
||||||
exec "\${HERE}"/venera "\$@"
|
|
||||||
EOF
|
|
||||||
chmod +x Venera.AppDir/AppRun
|
|
||||||
|
|
||||||
APP_VERSION=$(grep "version:" pubspec.yaml | cut -d':' -f2 | tr -d ' ')
|
|
||||||
./appimagetool Venera.AppDir Venera-${APP_VERSION}-aarch64.AppImage
|
|
||||||
|
|
||||||
mkdir -p build/linux/appimage
|
|
||||||
mv Venera-${APP_VERSION}-aarch64.AppImage build/linux/appimage/
|
|
||||||
- uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: appimage_arm64_build
|
|
||||||
path: build/linux/appimage
|
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: deb_arm64_build
|
name: deb_arm64_build
|
||||||
|
Reference in New Issue
Block a user