Skip to content

Commit e464184

Browse files
committed
chore(flatpak): Updated the build script.
1 parent 5448423 commit e464184

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

flatpak/flatpak-build-subcommand.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
set -e
2+
set -euo pipefail
33
set -x
44

55
projectName=OpenAuthenticator
@@ -14,8 +14,11 @@ mkdir -p $projectName
1414
tar -xf $projectName-Linux-Portable.tar.gz -C $projectName
1515

1616
# Copy the portable app to the Flatpak-based location.
17-
cp -r $projectName /app/
17+
cp -a $projectName /app/
1818
chmod +x /app/$projectName/$executableName
19+
if [[ -f "/app/$projectName/lib/crashpad_handler" ]]; then
20+
chmod +x "/app/$projectName/lib/crashpad_handler"
21+
fi
1922
mkdir -p /app/bin
2023
ln -s /app/$projectName/$executableName /app/bin/$executableName
2124

0 commit comments

Comments
 (0)