Compare commits

...

5 Commits

Author SHA1 Message Date
CactiChameleon9
cc04ea05a5 Change to shattered 2022-05-27 18:21:17 +01:00
CactiChameleon9
428274d7b8 Change to shattered 2022-05-27 18:21:03 +01:00
Alfred E. Neumayer
fcb940f648
Merge pull request #1 from BohdanQQ/openstore-crash
possible openstore crash fix
2022-03-14 22:21:00 +01:00
walking-octopus
28a3159922 Disable sandbox 2022-03-14 22:20:07 +01:00
Roman
4daa4dee8b
fixed target directory 2022-03-09 23:17:07 +01:00
11 changed files with 36 additions and 62 deletions

2
.gitignore vendored
View File

@ -3,5 +3,5 @@ build
out/ out/
src/ src/
pkg/ pkg/
*.tar.gz *.jar
PKGBUILD 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,25 @@
#!/bin/bash #!/bin/bash
sed -e # sed -e
rm *.tar.gz
dlarch="$1"
if [ "$1" == "amd64" ]; then
dlarch="x64"
fi
CLICK_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH) CLICK_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
CLICK_FRAMEWORK=ubuntu-sdk-16.04.5 CLICK_FRAMEWORK=ubuntu-sdk-16.04.5
pkgver=1.65.0 pkgver=v1.2.3
srcdir=$BUILD_DIR srcdir=$BUILD_DIR
pkgdir=$INSTALL_DIR pkgdir=$INSTALL_DIR
mkdir -p $srcdir $pkgdir mkdir -p $srcdir $pkgdir
wget https://github.com/VSCodium/vscodium/releases/download/$pkgver/VSCodium-linux-$dlarch-$pkgver.tar.gz wget https://github.com/00-Evan/shattered-pixel-dungeon/releases/download/$pkgver/ShatteredPD-$pkgver-Desktop.jar -O ShatteredPD.jar
tar xvf ./VSCodium-linux-$dlarch-$pkgver.tar.gz -C $pkgdir cp ShatteredPD.jar $pkgdir/
cp $ROOT/manifest.json $pkgdir/ cp $ROOT/manifest.json $pkgdir/
sed -i "s/@CLICK_ARCH@/$CLICK_ARCH/g" $pkgdir/manifest.json sed -i "s/@CLICK_ARCH@/$CLICK_ARCH/g" $pkgdir/manifest.json
sed -i "s/@CLICK_FRAMEWORK@/$CLICK_FRAMEWORK/g" $pkgdir/manifest.json sed -i "s/@CLICK_FRAMEWORK@/$CLICK_FRAMEWORK/g" $pkgdir/manifest.json
cp $ROOT/codium.apparmor $pkgdir/ cp $ROOT/shatteredpd.apparmour $pkgdir/
cp $ROOT/codium.desktop $pkgdir/ cp $ROOT/shatteredpd.desktop $pkgdir/
cp $ROOT/codium.wrapper $pkgdir/ cp $ROOT/shatteredpd.wrapper $pkgdir/
chmod a+x $pkgdir/codium.wrapper cp $ROOT/shatteredpd.png $pkgdir/
chown root $pkgdir/chrome-sandbox chmod a+x $pkgdir/shatteredpd.wrapper
chmod 4755 ./chrome-sandbox
exit 0 exit 0

View File

@ -14,9 +14,16 @@
"libglib2.0-0", "libglib2.0-0",
"libpng16-16", "libpng16-16",
"libgtk-3-0", "libgtk-3-0",
"libdbusmenu-glib4" "libdbusmenu-glib4",
"default-jdk"
], ],
"install_lib": [ "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*",
"/usr/lib/${ARCH_TRIPLET}/libm.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", "name": "com.shatteredpixel.shatteredpixeldungeon",
"description": "Open Source Code Editor", "description": "Traditional roguelike game with pixel-art graphics and simple interface",
"architecture": "@CLICK_ARCH@", "architecture": "@CLICK_ARCH@",
"title": "VSCodium", "title": "Shattered Pixel Dungeon",
"hooks": { "hooks": {
"code": { "code": {
"apparmor": "codium.apparmor", "apparmor": "shatteredpd.apparmour",
"desktop": "codium.desktop" "desktop": "shatteredpd.desktop"
} }
}, },
"version": "1.65.0", "version": "1.2.3",
"maintainer": "Alfred Neumayer <dev.beidl@gmail.com>", "maintainer": "CactiChameleon9 <CactiChameleon9@noreply>",
"framework" : "@CLICK_FRAMEWORK@" "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_BACKEND=x11
export GDK_SCALE=$SCALE export GDK_SCALE=$SCALE
exec ./codium --force-device-scale-factor=$SCALE "$@" exec java -jar ./ShatteredPD.jar --force-device-scale-factor=$SCALE "$@"