diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 15 | ||||
-rw-r--r-- | aliyun-adrive.sh | 13 |
3 files changed, 22 insertions, 20 deletions
@@ -1,22 +1,22 @@ pkgbase = aliyun-adrive-bin pkgdesc = Aliyun aDrive阿里云盘 - pkgver = 4.9.16 - pkgrel = 2 + pkgver = 4.11.0 + pkgrel = 1 url = https://www.aliyundrive.com arch = x86_64 - license = custom + license = LicenseRef-custom makedepends = gendesk makedepends = p7zip depends = electron25 - provides = aliyun-adrive=4.9.16 + provides = aliyun-adrive=4.11.0 conflicts = aliyun-adrive conflicts = deepin-wine-adrive conflicts = adrive - source = aliyun-adrive-4.9.16.exe::https://cdn.aliyundrive.net/downloads/apps/desktop/aDrive-4.9.16.exe + source = aliyun-adrive-4.11.0.exe::https://cdn.aliyundrive.net/downloads/apps/desktop/aDrive-4.11.0.exe source = LICENSE.html source = aliyun-adrive.sh - sha256sums = bb36e6204d6be7073ca9b13f273b55f788cd48dc9a849251a26b3239438b08d4 + sha256sums = 507bf86e5dffe75fc9cdd8caea0e1b284dd10dfeba435e331040c305958df7a6 sha256sums = e266be0821c3ebe2521767404dccb1d4cd4000be8fe318174bdb5c70ac015509 - sha256sums = 8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84 + sha256sums = d4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231 pkgname = aliyun-adrive-bin @@ -1,12 +1,12 @@ # Maintainer: zxp19821005 <zxp19821005 at 163 dot com> pkgname=aliyun-adrive-bin -pkgver=4.9.16 +pkgver=4.11.0 _electronversion=25 -pkgrel=2 +pkgrel=1 pkgdesc="Aliyun aDrive阿里云盘" arch=('x86_64') url="https://www.aliyundrive.com" -license=('custom') +license=('LicenseRef-custom') conflicts=( "${pkgname%-bin}" "deepin-wine-adrive" @@ -25,17 +25,18 @@ source=( "LICENSE.html" "${pkgname%-bin}.sh" ) -sha256sums=('bb36e6204d6be7073ca9b13f273b55f788cd48dc9a849251a26b3239438b08d4' +sha256sums=('507bf86e5dffe75fc9cdd8caea0e1b284dd10dfeba435e331040c305958df7a6' 'e266be0821c3ebe2521767404dccb1d4cd4000be8fe318174bdb5c70ac015509' - '8915ca75d453698df81f7f3305cce6869f4261d754d90f0c3724b73c7b24ca84') + 'd4272fed78cdcacd9edfb019134ac485d65b43f4d8c7a4179edbaed56af9b231') build() { sed -e "s|@electronversion@|${_electronversion}|" \ -e "s|@appname@|${pkgname%-bin}|g" \ -e "s|@appasar@|app.asar|g" \ -i "${srcdir}/${pkgname%-bin}.sh" - gendesk -q -f -n --categories "Network" --name "${pkgname%-bin}阿里云盘" --exec "${pkgname%-bin}" - mkdir -p "${srcdir}/tmp" + gendesk -q -f -n --categories "Network" --name "${pkgname%-bin}阿里云盘" --exec "${pkgname%-bin} %U" + install -Dm755 -d "${srcdir}/tmp" 7z x -aoa "${srcdir}/${pkgname%-bin}-${pkgver}.exe" -o"${srcdir}/tmp" + find "${srcdir}/tmp/resources" -type d -exec chmod 755 {} \; } package() { install -Dm755 "${srcdir}/${pkgname%-bin}.sh" "${pkgdir}/usr/bin/${pkgname%-bin}" diff --git a/aliyun-adrive.sh b/aliyun-adrive.sh index 2ec4412e5c4f..aacd8f895847 100644 --- a/aliyun-adrive.sh +++ b/aliyun-adrive.sh @@ -1,14 +1,15 @@ -#!/bin/bash +#!/bin/sh set -e _APPDIR="/usr/lib/@appname@" +_ASAR="${_APPDIR}/@appasar@" export PATH="${_APPDIR}:${PATH}" -export ELECTRON_IS_DEV=0 export LD_LIBRARY_PATH="${_APPDIR}/swiftshader:${_APPDIR}/lib:${LD_LIBRARY_PATH}" -_ASAR="${_APPDIR}/@appasar@" +export ELECTRON_IS_DEV=0 +export NODE_ENV=production +cd "${_APPDIR}" if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then - cd "${_APPDIR}" exec electron@electronversion@ "${_ASAR}" "$@" else - cd "${_APPDIR}" exec electron@electronversion@ "${_ASAR}" --no-sandbox "$@" -fi
\ No newline at end of file +fi +exit
\ No newline at end of file |