on master help sign in
AppImage (#2089)
e452b97Matthew Toohey
.github/workflows/release.yml+50−2
@@ -147,16 +147,60 @@ jobs:
147 aarch64-linux-gnu-strip \
147 aarch64-linux-gnu-strip \
148 /target/${{ matrix.target }}/release/hx
148 /target/${{ matrix.target }}/release/hx
149
149
150− - name: Build archive
150+ - name: Build AppImage
151 shell: bash
151 shell: bash
152+ if: matrix.build == 'x86_64-linux'
152 run: |
153 run: |
153 mkdir dist
154 mkdir dist
155+
156+ name=dev
157+ if [[ $GITHUB_REF == refs/tags/* ]]; then
158+ name=${GITHUB_REF:10}
159+ fi
160+
161+ export VERSION="$name"
162+ export ARCH=x86_64
163+ export APP=helix
164+ export OUTPUT="helix-$VERSION-$ARCH.AppImage"
165+ export UPDATE_INFORMATION="gh-releases-zsync|$GITHUB_REPOSITORY_OWNER|helix|latest|$APP-*-$ARCH.AppImage.zsync"
166+
167+ mkdir -p "$APP.AppDir"/usr/{bin,lib/helix}
168+
169+ cp "target/${{ matrix.target }}/release/hx" "$APP.AppDir/usr/bin/hx"
170+ rm -rf runtime/grammars/sources
171+ cp -r runtime "$APP.AppDir/usr/lib/helix/runtime"
172+
173+ cat << 'EOF' > "$APP.AppDir/AppRun"
174+ #!/bin/sh
175+
176+ APPDIR="$(dirname "$(readlink -f "${0}")")"
177+ HELIX_RUNTIME="$APPDIR/usr/lib/helix/runtime" exec "$APPDIR/usr/bin/hx" "$@"
178+ EOF
179+ chmod 755 "$APP.AppDir/AppRun"
180+
181+ curl -Lo linuxdeploy-x86_64.AppImage \
182+ https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
183+ chmod +x linuxdeploy-x86_64.AppImage
184+
185+ ./linuxdeploy-x86_64.AppImage \
186+ --appdir "$APP.AppDir" -d contrib/Helix.desktop \
187+ -i contrib/helix.png --output appimage
188+
189+ mv "$APP-$VERSION-$ARCH.AppImage" \
190+ "$APP-$VERSION-$ARCH.AppImage.zsync" dist
191+
192+ - name: Build archive
193+ shell: bash
194+ run: |
195+ mkdir -p dist
154 if [ "${{ matrix.os }}" = "windows-2019" ]; then
196 if [ "${{ matrix.os }}" = "windows-2019" ]; then
155 cp "target/${{ matrix.target }}/release/hx.exe" "dist/"
197 cp "target/${{ matrix.target }}/release/hx.exe" "dist/"
156 else
198 else
157 cp "target/${{ matrix.target }}/release/hx" "dist/"
199 cp "target/${{ matrix.target }}/release/hx" "dist/"
158 fi
200 fi
201+ if [ -d runtime/grammars/sources ]; then
159− rm -rf runtime/grammars/sources
202+ rm -rf runtime/grammars/sources
203+ fi
160 cp -r runtime dist
204 cp -r runtime dist
161
205
162 - uses: actions/upload-artifact@v3
206 - uses: actions/upload-artifact@v3
@@ -212,6 +256,10 @@ jobs:
212 mv bins-$platform/hx$exe $pkgname
256 mv bins-$platform/hx$exe $pkgname
213 chmod +x $pkgname/hx$exe
257 chmod +x $pkgname/hx$exe
214
258
259+ if [[ "$platform" = "x86_64-linux" ]]; then
260+ mv bins-$platform/helix-*.AppImage* dist/
261+ fi
262+
215 if [ "$exe" = "" ]; then
263 if [ "$exe" = "" ]; then
216 tar cJf dist/$pkgname.tar.xz $pkgname
264 tar cJf dist/$pkgname.tar.xz $pkgname
217 else
265 else
contrib/Helix.desktopnew file+89
@@ -0,0 +1,89 @@
1+[Desktop Entry]
2+Name=Helix
3+GenericName=Text Editor
4+GenericName[de]=Texteditor
5+GenericName[fr]=Éditeur de texte
6+GenericName[ru]=Текстовый редактор
7+GenericName[sr]=Едитор текст
8+GenericName[tr]=Metin Düzenleyici
9+Comment=Edit text files
10+Comment[af]=Redigeer tekslêers
11+Comment[am]=የጽሑፍ ፋይሎች ያስተካክሉ
12+Comment[ar]=حرّر ملفات نصية
13+Comment[az]=Mətn fayllarını redaktə edin
14+Comment[be]=Рэдагаваньне тэкставых файлаў
15+Comment[bg]=Редактиране на текстови файлове
16+Comment[bn]=টেক্স্ট ফাইল এডিট করুন
17+Comment[bs]=Izmijeni tekstualne datoteke
18+Comment[ca]=Edita fitxers de text
19+Comment[cs]=Úprava textových souborů
20+Comment[cy]=Golygu ffeiliau testun
21+Comment[da]=Redigér tekstfiler
22+Comment[de]=Textdateien bearbeiten
23+Comment[el]=Επεξεργασία αρχείων κειμένου
24+Comment[en_CA]=Edit text files
25+Comment[en_GB]=Edit text files
26+Comment[es]=Edita archivos de texto
27+Comment[et]=Redigeeri tekstifaile
28+Comment[eu]=Editatu testu-fitxategiak
29+Comment[fa]=ویرایش پرونده‌های متنی
30+Comment[fi]=Muokkaa tekstitiedostoja
31+Comment[fr]=Éditer des fichiers texte
32+Comment[ga]=Eagar comhad Téacs
33+Comment[gu]=લખાણ ફાઇલોમાં ફેરફાર કરો
34+Comment[he]=ערוך קבצי טקסט
35+Comment[hi]=पाठ फ़ाइलें संपादित करें
36+Comment[hr]=Uređivanje tekstualne datoteke
37+Comment[hu]=Szövegfájlok szerkesztése
38+Comment[id]=Edit file teks
39+Comment[it]=Modifica file di testo
40+Comment[ja]=テキストファイルを編集します
41+Comment[kn]=ಪಠ್ಯ ಕಡತಗಳನ್ನು ಸಂಪಾದಿಸು
42+Comment[ko]=텍스트 파일을 편집합니다
43+Comment[lt]=Redaguoti tekstines bylas
44+Comment[lv]=Rediģēt teksta failus
45+Comment[mk]=Уреди текстуални фајлови
46+Comment[ml]=വാചക രചനകള് തിരുത്തുക
47+Comment[mn]=Текст файл боловсруулах
48+Comment[mr]=गद्य फाइल संपादित करा
49+Comment[ms]=Edit fail teks
50+Comment[nb]=Rediger tekstfiler
51+Comment[ne]=पाठ फाइललाई संशोधन गर्नुहोस्
52+Comment[nl]=Tekstbestanden bewerken
53+Comment[nn]=Rediger tekstfiler
54+Comment[no]=Rediger tekstfiler
55+Comment[or]=ପାଠ୍ଯ ଫାଇଲଗୁଡ଼ିକୁ ସମ୍ପାଦନ କରନ୍ତୁ
56+Comment[pa]=ਪਾਠ ਫਾਇਲਾਂ ਸੰਪਾਦਨ
57+Comment[pl]=Edytor plików tekstowych
58+Comment[pt]=Editar ficheiros de texto
59+Comment[pt_BR]=Edite arquivos de texto
60+Comment[ro]=Editare fişiere text
61+Comment[ru]=Редактирование текстовых файлов
62+Comment[sk]=Úprava textových súborov
63+Comment[sl]=Urejanje datotek z besedili
64+Comment[sq]=Përpuno files teksti
65+Comment[sr]=Уређујте текст фајлове
66+Comment[sr@Latn]=Izmeni tekstualne datoteke
67+Comment[sv]=Redigera textfiler
68+Comment[ta]=உரை கோப்புகளை தொகுக்கவும்
69+Comment[th]=แก้ไขแฟ้มข้อความ
70+Comment[tk]=Metin faýllary editle
71+Comment[tr]=Metin dosyaları düzenleyin
72+Comment[uk]=Редактор текстових файлів
73+Comment[vi]=Soạn thảo tập tin văn bản
74+Comment[wa]=Asspougnî des fitchîs tecses
75+Comment[zh_CN]=编辑文本文件
76+Comment[zh_TW]=編輯文字檔
77+TryExec=hx
78+Exec=hx %F
79+Terminal=true
80+Type=Application
81+Keywords=Text;editor;
82+Keywords[fr]=Texte;éditeur;
83+Keywords[ru]=текст;текстовый редактор;
84+Keywords[sr]=Текст;едитор;
85+Keywords[tr]=Metin;düzenleyici;
86+Icon=helix
87+Categories=Utility;TextEditor;
88+StartupNotify=false
89+MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
contrib/helix.pngnew file

Binary file not shown.