Skip to content

Commit 2e3f166

Browse files
committed
chore: fix release workflow
1 parent 71d576b commit 2e3f166

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,7 @@ jobs:
179179
- name: Install system dependencies
180180
run: |
181181
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
186183
187184
# Create .env:
188185
- name: Setup env File
@@ -199,41 +196,6 @@ jobs:
199196
- name: Build Flutter Linux app
200197
run: flutter build linux
201198

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-
237199
# Step 7: Archive the app
238200
- name: Archive app
239201
uses: thedoctor0/zip-release@master
@@ -245,10 +207,6 @@ jobs:
245207
uses: softprops/action-gh-release@master
246208
with:
247209
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
252210
build_ios:
253211
runs-on: macos-latest
254212
permissions:
@@ -709,4 +667,4 @@ jobs:
709667
token: ${{ secrets.GITHUB_TOKEN }}
710668
bodyFile: CHANGELOG.md
711669
tag: ${{ env.TAG }}
712-
allowUpdates: true
670+
allowUpdates: true

0 commit comments

Comments
 (0)