-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated linux installer build to 1.0.0 Added AppImage for linux
- Loading branch information
1 parent
cba77c9
commit fa67041
Showing
8 changed files
with
69 additions
and
13 deletions.
There are no files selected for viewing
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
# Build the Flutter app for Linux | ||
flutter build linux | ||
|
||
# Create temporary AppDir structure | ||
mkdir -p linux-temp-installer/AppDir/usr/bin | ||
cp -r build/linux/x64/release/bundle/* linux-temp-installer/AppDir/usr/bin/ | ||
|
||
# Download AppImageTool if not already downloaded | ||
if [ ! -f linux-installer/appimagetool-x86_64.AppImage ]; then | ||
mkdir -p linux-installer | ||
wget -O linux-installer/appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | ||
chmod +x linux-installer/appimagetool-x86_64.AppImage | ||
fi | ||
|
||
# Create AppRun script | ||
cat > linux-temp-installer/AppDir/AppRun << 'EOF' | ||
#!/bin/sh | ||
HERE="$(dirname "$(readlink -f "${0}")")" | ||
exec "${HERE}/usr/bin/FluentGPT" | ||
EOF | ||
chmod +x linux-temp-installer/AppDir/AppRun | ||
|
||
# Create desktop entry | ||
cat > linux-temp-installer/AppDir/FluentGPT.desktop << 'EOF' | ||
[Desktop Entry] | ||
Name=FluentGPT | ||
Exec=FluentGPT | ||
Icon=app_icon512 | ||
Type=Application | ||
Categories=Utility; | ||
EOF | ||
|
||
# Copy the app icon | ||
cp assets/app_icon512.png linux-temp-installer/AppDir/app_icon512.png | ||
|
||
# Create installers directory if it doesn't exist | ||
mkdir -p installers | ||
|
||
# Bundle everything into an AppImage | ||
ARCH=x86_64 linux-installer/appimagetool-x86_64.AppImage linux-temp-installer/AppDir | ||
|
||
# Rename the AppImage file | ||
mv FluentGPT-x86_64.AppImage FluentGPT.appimage | ||
|
||
# Move the AppImage to the installers directory | ||
mv FluentGPT.appimage installers/ | ||
|
||
# Zip the contents of the build/linux/x64/release/bundle folder | ||
zip -r installers/fluent-gpt-linux.zip build/linux/x64/release/bundle | ||
|
||
# Clean up temporary directory | ||
rm -rf linux-temp-installer | ||
echo "AppImage and zip file created successfully and moved to installers directory." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters