mirror of
https://gitlab.com/2009scape/09launcher.git
synced 2025-12-09 16:45:54 -07:00
Fixed up the launcher project structure and naming
This commit is contained in:
commit
07180ce371
36 changed files with 1849 additions and 0 deletions
BIN
AppImage/2009scape.AppImage
Executable file
BIN
AppImage/2009scape.AppImage
Executable file
Binary file not shown.
BIN
AppImage/2009scape.jar
Normal file
BIN
AppImage/2009scape.jar
Normal file
Binary file not shown.
25
AppImage/LICENSE
Normal file
25
AppImage/LICENSE
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
BSD 2-Clause License
|
||||
|
||||
Copyright (c) 2016, Adam <Adam@sigterm.info>
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
8
AppImage/appimage/2009scape.desktop
Normal file
8
AppImage/appimage/2009scape.desktop
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=2009scape
|
||||
Comment=2009scape - Your Adventure Awaits!
|
||||
Exec=@finalName@
|
||||
Icon=2009scape
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;
|
||||
BIN
AppImage/appimage/2009scape.png
Normal file
BIN
AppImage/appimage/2009scape.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.5 KiB |
73
AppImage/build-linux.sh
Executable file
73
AppImage/build-linux.sh
Executable file
|
|
@ -0,0 +1,73 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
PACKR_VERSION="runelite-1.0"
|
||||
|
||||
rm -f 2009scape.AppImage
|
||||
|
||||
# Check if there's a client jar file - If there's no file the AppImage will not work but will still be built.
|
||||
if ! [ -e 2009scape.jar ]
|
||||
then
|
||||
echo "2009scape.jar not found, exiting"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! [ -f OpenJDK8U-jre_x64_linux_hotspot_8u275b01.tar.gz ] ; then
|
||||
curl -Lo OpenJDK8U-jre_x64_linux_hotspot_8u275b01.tar.gz \
|
||||
https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u275-b01/OpenJDK8U-jre_x64_linux_hotspot_8u275b01.tar.gz
|
||||
fi
|
||||
|
||||
rm -f packr.jar
|
||||
curl -o packr.jar https://libgdx.badlogicgames.com/ci/packr/packr.jar
|
||||
|
||||
# packr requires a "jdk" and pulls the jre from it - so we have to place it inside
|
||||
# the jdk folder at jre/
|
||||
if ! [ -d linux-jdk ] ; then
|
||||
tar zxf OpenJDK8U-jre_x64_linux_hotspot_8u275b01.tar.gz
|
||||
mkdir linux-jdk
|
||||
mv jdk8u275-b01-jre linux-jdk/jre
|
||||
fi
|
||||
|
||||
if ! [ -f packr_${PACKR_VERSION}.jar ] ; then
|
||||
curl -Lo packr_${PACKR_VERSION}.jar \
|
||||
https://github.com/runelite/packr/releases/download/${PACKR_VERSION}/packr.jar
|
||||
fi
|
||||
|
||||
echo "18b7cbaab4c3f9ea556f621ca42fbd0dc745a4d11e2a08f496e2c3196580cd53 packr_${PACKR_VERSION}.jar" | sha256sum -c
|
||||
|
||||
java -jar packr_${PACKR_VERSION}.jar \
|
||||
--platform \
|
||||
linux64 \
|
||||
--jdk \
|
||||
linux-jdk \
|
||||
--executable \
|
||||
2009scape \
|
||||
--classpath \
|
||||
2009scape.jar \
|
||||
--mainclass \
|
||||
fox.Launcher \
|
||||
--output \
|
||||
native-linux/2009scape.AppDir/ \
|
||||
--resources \
|
||||
appimage/2009scape.desktop \
|
||||
appimage/2009scape.png
|
||||
|
||||
cp appimage/2009scape.png native-linux/2009scape.AppDir
|
||||
|
||||
# Symlink AppRun -> 2009scape
|
||||
pushd native-linux/2009scape.AppDir/
|
||||
ln -s 2009scape AppRun
|
||||
popd
|
||||
|
||||
curl -Lo appimagetool-x86_64.AppImage https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
|
||||
chmod 755 appimagetool-x86_64.AppImage
|
||||
|
||||
./appimagetool-x86_64.AppImage \
|
||||
native-linux/2009scape.AppDir/ \
|
||||
native-linux/2009scape.AppImage
|
||||
|
||||
echo "Cleaning up.."
|
||||
|
||||
mv native-linux/2009scape.AppImage .
|
||||
rm -rf packr packr.jar packr_runelite-1.0.jar native-linux linux-jdk OpenJDK8U-jre_x64_linux_hotspot_8u275b01.tar.gz appimagetool-x86_64.AppImage
|
||||
82
AppImage/build-osx.sh
Executable file
82
AppImage/build-osx.sh
Executable file
|
|
@ -0,0 +1,82 @@
|
|||
#!/bin/bash
|
||||
|
||||
echo "NOTE: THIS DOES NOT WORK. IT HAS NEVER BEEN MODIFIED SINCE COPIED FROM https://github.com/open-osrs/launcher/blob/master/build-osx.sh"
|
||||
|
||||
set -e
|
||||
|
||||
JDK_VER="11.0.4"
|
||||
JDK_BUILD="11"
|
||||
PACKR_VERSION="runelite-1.0"
|
||||
|
||||
SIGNING_IDENTITY="Developer ID Application"
|
||||
ALTOOL_USER="user@icloud.com"
|
||||
ALTOOL_PASS="@keychain:altool-password"
|
||||
|
||||
if ! [ -f OpenJDK11U-jre_x64_mac_hotspot_${JDK_VER}_${JDK_BUILD}.tar.gz ] ; then
|
||||
curl -Lo OpenJDK11U-jre_x64_mac_hotspot_${JDK_VER}_${JDK_BUILD}.tar.gz \
|
||||
https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-${JDK_VER}%2B${JDK_BUILD}/OpenJDK11U-jre_x64_mac_hotspot_${JDK_VER}_${JDK_BUILD}.tar.gz
|
||||
fi
|
||||
|
||||
rm -f packr.jar
|
||||
curl -o packr.jar https://libgdx.badlogicgames.com/ci/packr/packr.jar
|
||||
|
||||
echo "1647fded28d25e562811f7bce2092eb9c21d30608843b04250c023b40604ff26 OpenJDK11U-jre_x64_mac_hotspot_${JDK_VER}_${JDK_BUILD}.tar.gz" | shasum -c
|
||||
|
||||
# packr requires a "jdk" and pulls the jre from it - so we have to place it inside
|
||||
# the jdk folder at jre/
|
||||
if ! [ -d osx-jdk ] ; then
|
||||
tar zxf OpenJDK11U-jre_x64_mac_hotspot_${JDK_VER}_${JDK_BUILD}.tar.gz
|
||||
mkdir osx-jdk
|
||||
mv jdk-11.0.4+11-jre osx-jdk/jre
|
||||
|
||||
# Move JRE out of Contents/Home/
|
||||
pushd osx-jdk/jre
|
||||
cp -r Contents/Home/* .
|
||||
popd
|
||||
fi
|
||||
|
||||
if ! [ -f packr_${PACKR_VERSION}.jar ] ; then
|
||||
curl -Lo packr_${PACKR_VERSION}.jar \
|
||||
https://github.com/runelite/packr/releases/download/${PACKR_VERSION}/packr.jar
|
||||
fi
|
||||
|
||||
echo "18b7cbaab4c3f9ea556f621ca42fbd0dc745a4d11e2a08f496e2c3196580cd53 packr_${PACKR_VERSION}.jar" | shasum -c
|
||||
|
||||
java -jar packr_${PACKR_VERSION}.jar \
|
||||
--platform \
|
||||
mac \
|
||||
--icon \
|
||||
packr/openosrs.icns \
|
||||
--jdk \
|
||||
osx-jdk \
|
||||
--executable \
|
||||
OpenOSRS \
|
||||
--classpath \
|
||||
build/libs/OpenOSRS-shaded.jar \
|
||||
--mainclass \
|
||||
net.runelite.launcher.Launcher \
|
||||
--vmargs \
|
||||
Drunelite.launcher.nojvm=true \
|
||||
Xmx512m \
|
||||
Xss2m \
|
||||
XX:CompileThreshold=1500 \
|
||||
Djna.nosys=true \
|
||||
--output \
|
||||
native-osx/OpenOSRS.app
|
||||
|
||||
cp build/filtered-resources/Info.plist native-osx/OpenOSRS.app/Contents
|
||||
|
||||
echo Setting world execute permissions on OpenOSRS
|
||||
pushd native-osx/OpenOSRS.app
|
||||
chmod g+x,o+x Contents/MacOS/OpenOSRS
|
||||
popd
|
||||
|
||||
codesign -f -s "${SIGNING_IDENTITY}" --entitlements osx/signing.entitlements --options runtime native-osx/RuneLite.app || true
|
||||
|
||||
# create-dmg exits with an error code due to no code signing, but is still okay
|
||||
# note we use Adam-/create-dmg as upstream does not support UDBZ
|
||||
create-dmg --format UDBZ native-osx/OpenOSRS.app.app native-osx/ || true
|
||||
|
||||
mv native-osx/OpenOSRS\ *.dmg native-osx/OpenOSRS.dmg
|
||||
|
||||
xcrun altool --notarize-app --username "${ALTOOL_USER}" --password "${ALTOOL_PASS}" --primary-bundle-id openosrs --file native-osx/OpenOSRS.dmg || true
|
||||
Loading…
Add table
Add a link
Reference in a new issue