This repository has been archived by the owner on Nov 23, 2022. It is now read-only.
generated from emilk/eframe_template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add 32 bit version of appimage setup script
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
if [[ "$EUID" -ne 0 ]]; then | ||
echo "Need root to install required binaries." | ||
sudo -v || exit | ||
fi | ||
|
||
echo "Installing appimagetool to /usr/bin" | ||
wget -O /tmp/appimagetool https://github.com/AppImage/AppImageKit/releases/download/13/appimagetool-i686.AppImage | ||
chmod +x /tmp/appimagetool | ||
if [[ "$EUID" -eq 0 ]]; then | ||
mv /tmp/appimagetool /usr/bin/ | ||
else | ||
sudo mv /tmp/appimagetool /usr/bin/ | ||
fi | ||
|
||
echo "Installing linuxdeploy to /usr/bin" | ||
wget -O /tmp/linuxdeploy https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-i386.AppImage | ||
chmod +x /tmp/linuxdeploy | ||
if [[ "$EUID" -eq 0 ]]; then | ||
mv /tmp/linuxdeploy /usr/bin | ||
else | ||
sudo mv /tmp/linuxdeploy /usr/bin | ||
fi | ||
|
||
echo "Installing required libraries" | ||
sudo apt install -y \ | ||
libxcb1-dev libxcb1-dev:i386 \ | ||
libxcb-render0-dev libxcb-render0-dev:i386 \ | ||
libxcb-shape0-dev libxcb-shape0-dev:i386 \ | ||
libxcb-xfixes0-dev libxcb-xfixes0-dev:i386 | ||
|
||
echo "Done. To uninstall simply remove the binaries located in /usr/bin." |