Skip to content

Commit 0d2e37b

Browse files
build_appimage.sh now builds the app from scratch.
1 parent a253093 commit 0d2e37b

File tree

3 files changed

+19
-12
lines changed

3 files changed

+19
-12
lines changed
Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
11
#!/bin/bash
22
# This script builds the AppImage for the application.
3-
# Run it from the root of the repository.
4-
# meson setup must have been given the --prefix=/usr option.
3+
# Run it from the root of the repository:
4+
# ./build-aux/appimage/build_appimage.sh <build_dir> <app_dir>
5+
6+
build_dir=$1
7+
app_dir=$2
58

69
if [ ! -f "linuxdeploy-x86_64.AppImage" ]; then
710
curl -L https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20250213-2/linuxdeploy-x86_64.AppImage -o linuxdeploy-x86_64.AppImage
811
chmod +x linuxdeploy-x86_64.AppImage
912
fi
1013

11-
if [ -d "AppDir" ]; then
12-
rm -rf "AppDir"
14+
if [ -d "${build_dir}" ]; then
15+
rm -rf "${build_dir}"
16+
fi
17+
18+
if [ -d "${app_dir}" ]; then
19+
rm -rf "${app_dir}"
1320
fi
1421

15-
cd buildDir
16-
meson install --no-rebuild --destdir ../AppDir
22+
meson setup "${build_dir}" --prefix=/usr --buildtype release
23+
cd "${build_dir}" || exit 1
24+
meson install --destdir ../"${app_dir}"
1725

18-
cd ../AppDir
19-
rm usr/bin/gorfector-tests
26+
cd ../"${app_dir}" || exit
27+
rm -f usr/bin/gorfector-tests
2028
mv usr/share/metainfo/com.patrickfournier.gorfector.metainfo.xml usr/share/metainfo/com.patrickfournier.gorfector.appdata.xml
2129

2230
cd ..
23-
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
24-
31+
./linuxdeploy-x86_64.AppImage --appdir "${app_dir}" --output appimage

po/fr.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ msgid ""
77
msgstr ""
88
"Project-Id-Version: gorfector master\n"
99
"Report-Msgid-Bugs-To: \n"
10-
"POT-Creation-Date: 2025-05-23 11:18-0400\n"
10+
"POT-Creation-Date: 2025-05-23 17:34-0400\n"
1111
"PO-Revision-Date: 2025-05-20 11:34-0400\n"
1212
"Last-Translator: Patrick Fournier <>\n"
1313
"Language-Team: French - Canada\n"

po/gorfector.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PACKAGE VERSION\n"
1010
"Report-Msgid-Bugs-To: \n"
11-
"POT-Creation-Date: 2025-05-23 11:18-0400\n"
11+
"POT-Creation-Date: 2025-05-23 17:34-0400\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"

0 commit comments

Comments
 (0)