@@ -179,10 +179,7 @@ jobs:
179
179
- name : Install system dependencies
180
180
run : |
181
181
sudo apt-get update -y
182
- sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1 libmpv-dev pkg-config fuse
183
- wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/latest/download/appimagetool-x86_64.AppImage"
184
- chmod +x appimagetool
185
- sudo mv appimagetool /usr/local/bin/
182
+ sudo apt-get install -y ninja-build libgtk-3-dev webkit2gtk-4.1 libmpv-dev pkg-config fuse
186
183
187
184
# Create .env:
188
185
- name : Setup env File
@@ -199,41 +196,6 @@ jobs:
199
196
- name : Build Flutter Linux app
200
197
run : flutter build linux
201
198
202
- - name : Create AppImage
203
- run : |
204
- # Create fresh AppDir structure
205
- rm -rf AppDir
206
- mkdir -p AppDir/usr/bin
207
- mkdir -p AppDir/usr/share/icons/hicolor/256x256/apps
208
- # Copy built files
209
- cp -r build/linux/x64/release/bundle/* AppDir/usr/bin/
210
- cp assets/images/logo.png AppDir/usr/share/icons/hicolor/256x256/apps/dartotsu.png
211
- cp assets/images/logo.png AppDir/dartotsu.png
212
- # Create desktop file in AppDir root
213
- cat <<EOF > AppDir/dartotsu.desktop
214
- [Desktop Entry]
215
- Name=Dartotsu
216
- Exec=usr/bin/dartotsu
217
- Icon=dartotsu
218
- Type=Application
219
- Categories=Utility;
220
- EOF
221
- # Create AppRun file
222
- cat <<EOF > AppDir/AppRun
223
- #!/bin/sh
224
- SELF=\$(readlink -f "\$0")
225
- HERE=\${SELF%/*}
226
- export PATH="\${HERE}/usr/bin/:\${PATH}"
227
- export LD_LIBRARY_PATH="\${HERE}/usr/lib/:\${LD_LIBRARY_PATH}"
228
- exec "\${HERE}/usr/bin/dartotsu" "\$@"
229
- EOF
230
- chmod +x AppDir/AppRun
231
- # Make AppImage
232
- /usr/local/bin/appimagetool AppDir
233
- mv Dartotsu-x86_64.AppImage build/linux/x64/release/Dartotsu-Linux-${{github.ref_name}}.AppImage
234
-
235
- ls build/linux/x64/release
236
-
237
199
# Step 7: Archive the app
238
200
- name : Archive app
239
201
uses : thedoctor0/zip-release@master
@@ -245,10 +207,6 @@ jobs:
245
207
uses : softprops/action-gh-release@master
246
208
with :
247
209
files : build/linux/x64/release/bundle/Dartotsu_LinuxZip_${{github.ref_name}}.zip
248
- - name : Release Linux app image
249
- uses : softprops/action-gh-release@master
250
- with :
251
- files : build/linux/x64/release/Dartotsu-Linux-${{github.ref_name}}.AppImage
252
210
build_ios :
253
211
runs-on : macos-latest
254
212
permissions :
@@ -709,4 +667,4 @@ jobs:
709
667
token : ${{ secrets.GITHUB_TOKEN }}
710
668
bodyFile : CHANGELOG.md
711
669
tag : ${{ env.TAG }}
712
- allowUpdates : true
670
+ allowUpdates : true
0 commit comments