diff options
author | zxp19821005 | 2024-05-06 09:42:49 +0800 |
---|---|---|
committer | zxp19821005 | 2024-05-06 09:42:49 +0800 |
commit | fc07e2cf1ec5983b38a0529aae377a44f57478e4 (patch) | |
tree | e128cdccbd1e029644de0d1fc4ec964fc9abd431 | |
parent | 856fea09656922b5742465d9dc0c19128d6b48d2 (diff) | |
download | aur-fc07e2cf1ec5983b38a0529aae377a44f57478e4.tar.gz |
update to 1.2.0
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 12 | ||||
-rw-r--r-- | blueknight.sh | 11 |
3 files changed, 20 insertions, 13 deletions
@@ -1,16 +1,16 @@ pkgbase = blueknight-bin pkgdesc = A Minecraft Launcher made with electron, that uses the Modrinth api to make installing mods as easy as possible.Beta version. - pkgver = 1.1.3 + pkgver = 1.2.0 pkgrel = 1 url = https://github.com/KartoffelChipss/blueknight arch = x86_64 license = GPL-3.0-only depends = electron28 - provides = blueknight=1.1.3 + provides = blueknight=1.2.0 conflicts = blueknight - source = blueknight-1.1.3.deb::https://github.com/KartoffelChipss/blueknight/releases/download/v1.1.3-beta/blueknight-launcher-deb-1.1.3.deb + source = blueknight-1.2.0.deb::https://github.com/KartoffelChipss/blueknight/releases/download/v1.2.0-beta/blueknight-launcher-deb-1.2.0.deb source = blueknight.sh - sha256sums = 9e67bde47df786db286b9b8ebb46ed2e79603f8c11bd7bcc0b19cf20970b42fe - sha256sums = dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8 + sha256sums = 7d127710c96e9f8514d4dbabac0357bb495817513fce3d68f800043f4fb7e4dd + sha256sums = 24c1c5b90cba47cd3d7a3ff11a934fcdbb499f8c56423d22009ef33a775e2d21 pkgname = blueknight-bin @@ -1,7 +1,7 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=blueknight-bin _pkgname=BlueKnight -pkgver=1.1.3 +pkgver=1.2.0 _electronversion=28 pkgrel=1 pkgdesc="A Minecraft Launcher made with electron, that uses the Modrinth api to make installing mods as easy as possible.Beta version." @@ -17,21 +17,21 @@ source=( "${pkgname%-bin}-${pkgver}.deb::${url}/releases/download/v${pkgver}-beta/${pkgname%-bin}-launcher-deb-${pkgver}.deb" "${pkgname%-bin}.sh" ) -sha256sums=('9e67bde47df786db286b9b8ebb46ed2e79603f8c11bd7bcc0b19cf20970b42fe' - 'dc0c5ca385ad81a08315a91655c7c064b5bf110eada55e61265633ae198b39f8') +sha256sums=('7d127710c96e9f8514d4dbabac0357bb495817513fce3d68f800043f4fb7e4dd' + '24c1c5b90cba47cd3d7a3ff11a934fcdbb499f8c56423d22009ef33a775e2d21') build() { sed -e "s|@electronversion@|${_electronversion}|" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@runname@|app.asar|g" \ - -e "s|@options@||g" \ + -e "s|@options@|env ELECTRON_OZONE_PLATFORM_HINT=auto|g" \ -i "${srcdir}/${pkgname%-bin}.sh" bsdtar -xf "${srcdir}/data."* - sed "s|\"\/opt\/${_pkgname} Launcher\/${pkgname%-bin}\"|${pkgname%-bin}|g;s|Utility|Game|g" \ + sed "s|/opt/${_pkgname}/${pkgname%-bin}|${pkgname%-bin}|g;s|Utility|Game|g" \ -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" - install -Dm644 "${srcdir}/opt/${_pkgname} Launcher/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" + install -Dm644 "${srcdir}/opt/${_pkgname}/resources/app.asar" -t "${pkgdir}/usr/lib/${pkgname%-bin}" install -Dm644 "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications" for _icons in 16x16 32x32 48x48 64x64 128x128 256x256;do install -Dm644 "${srcdir}/usr/share/icons/hicolor/${_icons}/apps/${pkgname%-bin}.png" \ diff --git a/blueknight.sh b/blueknight.sh index 7ddcaab8d734..79987c30c522 100644 --- a/blueknight.sh +++ b/blueknight.sh @@ -7,10 +7,17 @@ export PATH="${_APPDIR}:${PATH}" export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" export ELECTRON_IS_DEV=0 export ELECTRON_FORCE_IS_PACKAGED=true +export ELECTRON_RUN_AS_NODE=0 +export ELECTRON_DISABLE_SECURITY_WARNINGS=true export NODE_ENV=production +export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" +_FLAGS_FILE="${XDG_CONFIG_HOME}/@appname@-flags.conf" +if [ -r "${_FLAGS_FILE}" ]; then + _USER_FLAGS="$(cat "${_FLAGS_FILE}")" +fi cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" "${_USER_FLAGS}" "$@" || exit $? else - exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "$@" || exit $? + exec electron@electronversion@ "${_RUNNAME}" "${_OPTIONS}" --no-sandbox "${_USER_FLAGS}" "$@" || exit $? fi
\ No newline at end of file |