-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
85aa4cc
commit 1f180eb
Showing
8 changed files
with
104 additions
and
1 deletion.
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
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,5 @@ | ||
#!/bin/bash | ||
|
||
APPIMAGE="$(dirname "$0")" | ||
|
||
exec ${APPIMAGE}/usr/bin/OpenXcomEx -data "${APPIMAGE}" -user "$PWD" "$@" |
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,10 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Name=OpenXCOM Extended | ||
Comment=Extended version of the OpenXCOM game | ||
Exec=OpenXcomEx | ||
Icon=openxcom | ||
Path=/ | ||
Terminal=false | ||
Categories=Game; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
FROM ubuntu:20.04 AS base | ||
|
||
# Install dependencies for OXCE and AppImage creation | ||
RUN apt-get update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | ||
libsdl1.2-dev \ | ||
libsdl-image1.2-dev \ | ||
libsdl-gfx1.2-dev \ | ||
libsdl-mixer1.2-dev \ | ||
libfuse2 \ | ||
appstream \ | ||
gnupg2 \ | ||
file \ | ||
wget \ | ||
ca-certificates && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN update-ca-certificates | ||
|
||
# Download and prepare AppImage tools (linuxdeploy) | ||
RUN wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -O /usr/bin/linuxdeploy && \ | ||
chmod +x /usr/bin/linuxdeploy | ||
|
||
WORKDIR /app | ||
|
||
# COPY build.sh /app |
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,13 @@ | ||
#!/bin/sh | ||
|
||
cp -a vol/AppDir . | ||
|
||
cp -a vol/oxce/. AppDir/. | ||
rm AppDir/OpenXcomEx | ||
|
||
mkdir -p AppDir/usr/bin \ | ||
&& cp vol/oxce/OpenXcomEx AppDir/usr/bin/ | ||
|
||
/usr/bin/linuxdeploy --appdir AppDir --output appimage | ||
mv *.AppImage out/ | ||
# bash |
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,24 @@ | ||
#!/bin/bash | ||
|
||
LATEST=$(ls -t | grep ^Extended) | ||
if [ "$LATEST" = "" ]; then | ||
echo "Error: could not get latest file" | ||
exit 1 | ||
fi | ||
|
||
VERSION=$(echo "$LATEST" | cut -d'-' -f2) | ||
if [ "$VERSION" = "" ]; then | ||
echo "Error: could not get latest version number" | ||
exit 1 | ||
fi | ||
|
||
echo "$VERSION" >> VERSION | ||
|
||
docker build -t linuxdeploy appimage | ||
docker run \ | ||
--privileged \ | ||
--rm \ | ||
-v "$PWD:/app/vol":ro \ | ||
-v "$PWD/out:/app/out" \ | ||
linuxdeploy \ | ||
bash -c "vol/build-appimage-in-container.sh" |
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