forked from mmulet/term.everything
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdistribute.sh
More file actions
executable file
·38 lines (29 loc) · 1.26 KB
/
distribute.sh
File metadata and controls
executable file
·38 lines (29 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
# This script builds a distributable AppImage
# of the term.everything application using Podman.
PODMAN_ROOT="./.podman"
PODMAN_RUNROOT="./.podman-run"
PODMAN="podman --root $PODMAN_ROOT --runroot $PODMAN_RUNROOT"
APP_NAME="term.everything❗mmulet.com-dont_forget_to_chmod_+x_this_file"
if ! command -v podman >/dev/null 2>&1; then
echo "Warning: podman is not installed or not in PATH. On ubuntu \"sudo apt install podman\". Please install podman to proceed, it's literally all you need. Don't even need attention. Just podman. Just get podman. What are you waiting for? Stop reading this and install podman."
exit 1
fi
# Create a distributable appimage using podman
$PODMAN build -t term.everything:appimage -f ./resources/ContainerFile .
$PODMAN create --name term-appimg term.everything:appimage
$PODMAN cp term-appimg:/out ./dist
$PODMAN rm term-appimg
$PODMAN rmi -f term.everything:appimage
$PODMAN image prune -f
$PODMAN unmount -a || true
$PODMAN system reset -f || true
chmod -R u+rwX $PODMAN_ROOT || true
rm -rf $PODMAN_ROOT || true
rm -rf $PODMAN_RUNROOT || true
mv ./dist/*.AppImage ./dist/$APP_NAME
echo ""
echo "Output is ./dist/$APP_NAME "
chmod +x ./third_party/chafa
./third_party/chafa ./resources/icon.png
echo "Output is ./dist/$APP_NAME "