feat: add in debian packaging
This commit is contained in:
parent
a1ec1b2591
commit
61deccbe3b
18 changed files with 72 additions and 6 deletions
|
@ -14,6 +14,7 @@ This changelog only contains the changes that are unreleased. For changes for in
|
|||
- Packs on CurseForge using JumpLoader no longer use Forge [#444]
|
||||
- Add OS information to Google Analytics
|
||||
- Use newer universalJavaApplicationStub for OSX app
|
||||
- Add in debian packaging
|
||||
|
||||
### Fixes
|
||||
- Dialog when installing file from CurseForge not showing progress
|
||||
|
|
1
scripts/debian/.gitignore
vendored
Normal file
1
scripts/debian/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
out/
|
9
scripts/debian/Dockerfile
Normal file
9
scripts/debian/Dockerfile
Normal file
|
@ -0,0 +1,9 @@
|
|||
FROM debian
|
||||
|
||||
ADD atlauncher /work/atlauncher
|
||||
|
||||
RUN chmod -R 0755 /work
|
||||
|
||||
WORKDIR /work
|
||||
|
||||
RUN dpkg-deb --build atlauncher
|
10
scripts/debian/atlauncher/DEBIAN/control
Normal file
10
scripts/debian/atlauncher/DEBIAN/control
Normal file
|
@ -0,0 +1,10 @@
|
|||
Package: atlauncher
|
||||
Version: 1.0-1
|
||||
Section: games
|
||||
Priority: optional
|
||||
Architecture: all
|
||||
Depends: default-jre-headless | java8-runtime-headless | java8-runtime | java-8-runtime, wget, desktop-file-utils
|
||||
Installed-Size: 2220
|
||||
Maintainer: Ryan Dowling <ryan.dowling@atlauncher.com>
|
||||
Description: ATLauncher is a Launcher for Minecraft which integrates multiple different ModPacks to allow you to download and install ModPacks easily and quickly.
|
||||
Homepage: https://atlauncher.com
|
3
scripts/debian/atlauncher/DEBIAN/postrm
Normal file
3
scripts/debian/atlauncher/DEBIAN/postrm
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
update-desktop-database
|
1
scripts/debian/atlauncher/opt/atlauncher/icon.svg
Normal file
1
scripts/debian/atlauncher/opt/atlauncher/icon.svg
Normal file
|
@ -0,0 +1 @@
|
|||
<svg viewBox="0 0 2084 2084" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><g fill-rule="nonzero"><path d="M1041.67 81.38l272.437 159.032-825.246 478.685-272.438-157.971L1041.67 81.38zm87.28 371.074l274.024-159.032 463.937 271.945-276.14 153.73-461.821-266.643z" fill="#3b3b3b"/><path d="M216.42 561.126v961.081l825.247 479.746V1684.95l-551.222-321.774-1.587-644.079L216.42 561.126z" fill="#2e2e2e"/><path d="M1866.91 1517.97l-825.246 483.986v-317.003l550.164-320.714-1.058-645.139 276.14-153.73v952.6z" fill="#333"/><path d="M1590.77 719.097l-549.106 310.112v165.393l214.246-122.984v488.757l138.599-81.106V989.451l196.261-115.563V719.097z" fill="#89c236"/><path d="M488.858 719.097l1.587 644.079 152.353 90.118v-198.79l230.645 132.527v199.319l168.753 98.6v-655.741L488.858 719.097zm383.527 531.166l-227.471-131.466v-150.02l227.471 127.225v154.261z" fill="#7baf31"/></g></svg>
|
After Width: | Height: | Size: 951 B |
15
scripts/debian/atlauncher/opt/atlauncher/run.sh
Normal file
15
scripts/debian/atlauncher/opt/atlauncher/run.sh
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
|
||||
INSTDIR="${XDG_DATA_HOME-$HOME/.local/share}/atlauncher"
|
||||
|
||||
if [[ ! -d ${INSTDIR} ]]; then
|
||||
mkdir -p $INSTDIR
|
||||
fi
|
||||
|
||||
cd $INSTDIR
|
||||
|
||||
if [[ ! -f ${INSTDIR}/ATLauncher.jar ]]; then
|
||||
wget "https://download.nodecdn.net/containers/atl/ATLauncher.jar" 2>&1
|
||||
fi
|
||||
|
||||
java -jar ATLauncher.jar "$@"
|
|
@ -0,0 +1,12 @@
|
|||
[Desktop Entry]
|
||||
Categories=Game;
|
||||
Exec=/opt/atlauncher/run.sh
|
||||
Icon=/opt/atlauncher/icon.svg
|
||||
Keywords=game;Minecraft;
|
||||
MimeType=
|
||||
Name=ATLauncher
|
||||
Path=
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
8
scripts/debian/build.bat
Normal file
8
scripts/debian/build.bat
Normal file
|
@ -0,0 +1,8 @@
|
|||
docker build -t atlauncher/debian .
|
||||
FOR /F "tokens=* USEBACKQ" %%F IN (`docker create -t atlauncher/debian`) DO (
|
||||
SET IMAGE_ID=%%F
|
||||
)
|
||||
|
||||
mkdir out
|
||||
|
||||
docker cp %IMAGE_ID%:/work/atlauncher.deb ./out/atlauncher_1.0-1.deb
|
6
scripts/debian/build.sh
Normal file
6
scripts/debian/build.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
docker build -t atlauncher/debian .
|
||||
IMAGE_ID=`docker create -t atlauncher/debian .`
|
||||
|
||||
mkdir out
|
||||
|
||||
docker cp ${IMAGE_ID}:/work/atlauncher.deb ./out/atlauncher_1.0-1.deb
|
|
@ -1,3 +0,0 @@
|
|||
cd ../../
|
||||
docker run --rm -i -v %cd%:/work -w /work/scripts/installer amake/innosetup installer.iss
|
||||
cd scripts/installer
|
|
@ -1,3 +0,0 @@
|
|||
cd ../../
|
||||
docker run --rm -i -v $PWD:/work -w /work/scripts/installer amake/innosetup installer.iss
|
||||
cd scripts/installer
|
3
scripts/windows-setup/build.bat
Normal file
3
scripts/windows-setup/build.bat
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd ../../
|
||||
docker run --rm -i -v %cd%:/work -w /work/scripts/windows-setup amake/innosetup installer.iss
|
||||
cd scripts/windows-setup
|
3
scripts/windows-setup/build.sh
Normal file
3
scripts/windows-setup/build.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
cd ../../
|
||||
docker run --rm -i -v $PWD:/work -w /work/scripts/windows-setup amake/innosetup installer.iss
|
||||
cd scripts/windows-setup
|
Before Width: | Height: | Size: 580 KiB After Width: | Height: | Size: 580 KiB |
Loading…
Reference in a new issue