Skip to content

Commit

Permalink
Fix icon
Browse files Browse the repository at this point in the history
  • Loading branch information
pierotofy committed Jul 10, 2024
1 parent fbcee4c commit 447b10c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
9 changes: 8 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,18 @@ cp -vr --preserve=links linux/AppDir dist/ThermalTools.AppDir
mkdir -p dist/ThermalTools.AppDir/bundle
cp -vr build/linux/x64/release/bundle/* dist/ThermalTools.AppDir/bundle

# Delete windows assets
rm -fr dist/ThermalTools.AppDir/bundle/data/flutter_assets/assets/windows

# Set executable flags
chmod +x dist/ThermalTools.AppDir/bundle/data/flutter_assets/assets/linux/exiftool/exiftool
chmod +x dist/ThermalTools.AppDir/bundle/data/flutter_assets/assets/linux/dji_tools/dji_irp*

if [ ! -f ./installtools/appimagetool ]; then
wget -O ./installtools/appimagetool https://github.com/probonopd/go-appimage/releases/download/continuous/appimagetool-838-x86_64.AppImage
chmod +x ./installtools/appimagetool
fi

export VERSION=$(cat VERSION)
./installtools/appimagetool --overwrite ./dist/ThermalTools.AppDir
mv -v *.AppImage ./dist
mv -v *.AppImage ./dist/ThermalTools.AppImage
6 changes: 0 additions & 6 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,6 @@ class _HomePageState extends State<HomePage> {
_lastError = "";
});

// Make sure executables are executable
if (Platform.isLinux){
Process.run("chmod", ["+x", getDjiToolPath()]);
Process.run("chmod", ["+x", getExifToolPath()]);
}

Directory outDir = Directory(getOutputFolder());
if (await outDir.exists()){
await outDir.delete(recursive: true);
Expand Down
1 change: 0 additions & 1 deletion linux/AppDir/AppRun

This file was deleted.

6 changes: 6 additions & 0 deletions linux/AppDir/AppRun
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

__dirname=$(cd "$(dirname "$0")"; pwd -P)
cd "${__dirname}/bundle"

./thermal_tools "$@"

0 comments on commit 447b10c

Please sign in to comment.