Compare commits

..

6 Commits

Author SHA1 Message Date
856fc23d01 Compile the code insteaf 2022-05-27 19:16:10 +01:00
cc04ea05a5 Change to shattered 2022-05-27 18:21:17 +01:00
428274d7b8 Change to shattered 2022-05-27 18:21:03 +01:00
fcb940f648 Merge pull request #1 from BohdanQQ/openstore-crash
possible openstore crash fix
2022-03-14 22:21:00 +01:00
28a3159922 Disable sandbox 2022-03-14 22:20:07 +01:00
4daa4dee8b fixed target directory 2022-03-09 23:17:07 +01:00
11 changed files with 43 additions and 62 deletions

2
.gitignore vendored
View File

@ -3,5 +3,5 @@ build
out/
src/
pkg/
*.tar.gz
*.jar
PKGBUILD

13
LICENSE
View File

@ -1,13 +0,0 @@
MIT License
Copyright (c) 2018-present The VSCodium contributors
Copyright (c) 2018-present Peter Squicciarini
Copyright (c) 2015-present Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,12 +0,0 @@
# Visual Studio Code
Open Source version of Microsoft's Code Editor
## License
Copyright (c) 2018-present The VSCodium contributors
Copyright (c) 2018-present Peter Squicciarini
Copyright (c) 2015-present Microsoft Corporation
Licensed under the MIT license

View File

@ -1,33 +1,32 @@
#!/bin/bash
sed -e
rm *.tar.gz
dlarch="$1"
if [ "$1" == "amd64" ]; then
dlarch="x64"
fi
# sed -e
CLICK_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
CLICK_FRAMEWORK=ubuntu-sdk-16.04.5
pkgver=1.65.0
pkgver=v1.2.3
srcdir=$BUILD_DIR
pkgdir=$INSTALL_DIR
mkdir -p $srcdir $pkgdir
wget https://github.com/VSCodium/vscodium/releases/download/$pkgver/VSCodium-linux-$dlarch-$pkgver.tar.gz
tar xvf ./VSCodium-linux-$dlarch-$pkgver.tar.gz -C $pkgdir
git clone https://github.com/00-Evan/shattered-pixel-dungeon
cd shattered-pixel-dungeon/
git stash
git pull
rm -r android ios
./gradlew desktop:release
cd ../
cp shattered-pixel-dungeon/desktop/build/libs/*.jar $pkgdir/ShatteredPD.jar
cp $ROOT/manifest.json $pkgdir/
sed -i "s/@CLICK_ARCH@/$CLICK_ARCH/g" $pkgdir/manifest.json
sed -i "s/@CLICK_FRAMEWORK@/$CLICK_FRAMEWORK/g" $pkgdir/manifest.json
cp $ROOT/codium.apparmor $pkgdir/
cp $ROOT/codium.desktop $pkgdir/
cp $ROOT/codium.wrapper $pkgdir/
chmod a+x $pkgdir/codium.wrapper
chown root $pkgdir/chrome-sandbox
chmod 4755 ./chrome-sandbox
cp $ROOT/shatteredpd.apparmour $pkgdir/
cp $ROOT/shatteredpd.desktop $pkgdir/
cp $ROOT/shatteredpd.wrapper $pkgdir/
cp $ROOT/shatteredpd.png $pkgdir/
chmod a+x $pkgdir/shatteredpd.wrapper
exit 0

View File

@ -14,9 +14,16 @@
"libglib2.0-0",
"libpng16-16",
"libgtk-3-0",
"libdbusmenu-glib4"
"libdbusmenu-glib4",
"default-jdk",
"libc6"
],
"install_lib": [
"/usr/lib/${ARCH_TRIPLET}/libgtk-3.so*"
"/usr/lib/${ARCH_TRIPLET}/libgtk-3.so*",
"/usr/lib/${ARCH_TRIPLET}/libvpx.so.3*",
"/usr/lib/${ARCH_TRIPLET}/libsndio.so.6.1",
"/usr/lib/${ARCH_TRIPLET}/libvorbis.so.0*",
"/usr/lib/${ARCH_TRIPLET}/libSDL2-2.0.so*",
"/usr/lib/${ARCH_TRIPLET}/libsndio.so*",
]
}

View File

@ -1,9 +0,0 @@
[Desktop Entry]
Name=VSCodium
Exec=./codium.wrapper %U
Icon=./resources/app/resources/linux/code.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true
X-Ubuntu-Splash-Color=#FFFFFF
X-Ubuntu-XMir-Enable=true

View File

@ -1,15 +1,15 @@
{
"name": "codium.vscodium.com",
"description": "Open Source Code Editor",
"name": "com.shatteredpixel.shatteredpixeldungeon",
"description": "Traditional roguelike game with pixel-art graphics and simple interface",
"architecture": "@CLICK_ARCH@",
"title": "VSCodium",
"title": "Shattered Pixel Dungeon",
"hooks": {
"code": {
"apparmor": "codium.apparmor",
"desktop": "codium.desktop"
"apparmor": "shatteredpd.apparmour",
"desktop": "shatteredpd.desktop"
}
},
"version": "1.65.0",
"maintainer": "Alfred Neumayer <dev.beidl@gmail.com>",
"version": "1.2.3",
"maintainer": "CactiChameleon9 <CactiChameleon9@noreply>",
"framework" : "@CLICK_FRAMEWORK@"
}

9
shatteredpd.desktop Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Shattered Pixel Dungeon
Exec=java -jar ./ShatteredPD.jar
Icon=./shatteredpd.png
Terminal=false
Type=Application
X-Ubuntu-Touch=true
X-Ubuntu-Splash-Color=#53524e
X-Ubuntu-XMir-Enable=true

BIN
shatteredpd.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

View File

@ -5,4 +5,4 @@ SCALE=$(( $GRID_UNIT_PX / 8 ))
export GDK_BACKEND=x11
export GDK_SCALE=$SCALE
exec ./codium --force-device-scale-factor=$SCALE "$@"
exec java -jar ./ShatteredPD.jar --force-device-scale-factor=$SCALE "$@"