diff options
author | Vianney Bouchaud | 2023-10-09 10:43:56 +0200 |
---|---|---|
committer | Vianney Bouchaud | 2023-10-09 10:43:56 +0200 |
commit | 431513a84080f9bf75188d13c521f50805818999 (patch) | |
tree | 4273556c8dfba60cb1163d6a376f3650a920da09 | |
parent | b148a127094c5fbdbdd82f58db0684f96137bddd (diff) | |
download | aur-431513a84080f9bf75188d13c521f50805818999.tar.gz |
upgpkg: bruno 0.22.0-1
upstream release
fixed bruno starting script and added a desktop file
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rw-r--r-- | com.usebruno.app.Bruno.desktop | 9 |
3 files changed, 36 insertions, 16 deletions
@@ -1,6 +1,6 @@ pkgbase = bruno pkgdesc = Opensource IDE For Exploring and Testing Api's - pkgver = 0.21.1 + pkgver = 0.22.0 pkgrel = 1 url = https://www.usebruno.com/ arch = x86_64 @@ -8,7 +8,9 @@ pkgbase = bruno makedepends = nvm makedepends = asar depends = electron21 - source = bruno-0.21.1.tar.gz::https://github.com/usebruno/bruno/archive/v0.21.1.tar.gz - sha256sums = 8406b7d1c62d234c92a0653587b5c6097f4defe9b605011c6bd99edd5a45a8e5 + source = bruno-0.22.0.tar.gz::https://github.com/usebruno/bruno/archive/v0.22.0.tar.gz + source = com.usebruno.app.Bruno.desktop + sha256sums = f06365bf55e74c9468a556582b7e2e48960491cdeb72798aceaf7bef75a06e0a + sha256sums = 7bad0d66e67fdaaf99d1b7b32ba2f119b7d6dba12ecfdb398c39ee3c81bbe051 pkgname = bruno @@ -2,14 +2,14 @@ pkgname=bruno pkgdesc="Opensource IDE For Exploring and Testing Api's" -pkgver=0.21.1 +pkgver=0.22.0 pkgrel=1 arch=('x86_64') url="https://www.usebruno.com/" license=('MIT') _electron=electron21 depends=( - "$_electron" + "${_electron}" ) makedepends=( 'nvm' @@ -18,10 +18,12 @@ makedepends=( source=( "${pkgname}-${pkgver}.tar.gz::https://github.com/usebruno/bruno/archive/v${pkgver}.tar.gz" + com.usebruno.app.Bruno.desktop ) sha256sums=( - '8406b7d1c62d234c92a0653587b5c6097f4defe9b605011c6bd99edd5a45a8e5' + 'f06365bf55e74c9468a556582b7e2e48960491cdeb72798aceaf7bef75a06e0a' + '7bad0d66e67fdaaf99d1b7b32ba2f119b7d6dba12ecfdb398c39ee3c81bbe051' ) _ensure_local_nvm() { @@ -37,7 +39,7 @@ _ensure_local_nvm() { prepare() { _ensure_local_nvm - cd "$pkgname-$pkgver" + cd "${pkgname}-${pkgver}" nvm install @@ -50,8 +52,9 @@ prepare() { build() { _ensure_local_nvm export NODE_ENV=production + export NODE_OPTIONS=--openssl-legacy-provider - cd "$pkgname-$pkgver" + cd "${pkgname}-${pkgver}" npm run build:bruno-query npm run build:graphql-docs @@ -59,21 +62,27 @@ build() { electronDist="/usr/lib/${_electron}" electronVer="$(cat ${electronDist}/version)" - sed -i -e "s~\"dist\":.*~\"dist\": \"electron-builder --linux --x64 --dir --config electron-builder-config.js -c.electronDist=$electronDist -c.electronVersion=$electronVer\",~g" packages/bruno-electron/package.json + sed -i -e "s~\"dist\":.*~\"dist\": \"electron-builder --linux --x64 --dir --config electron-builder-config.js -c.electronDist=${electronDist} -c.electronVersion=${electronVer}\",~g" packages/bruno-electron/package.json npm run build:electron } package() { - cd "$pkgname-$pkgver" + install -Dm0644 com.usebruno.app.Bruno.desktop -t "${pkgdir}/usr/share/applications/" - install -Dm0755 /dev/null "$pkgdir/usr/bin/$pkgname" - cat >>"$pkgdir/usr/bin/$pkgname" <<EOD + cd "${pkgname}-${pkgver}" + + install -Dm0755 /dev/null "${pkgdir}/usr/bin/${pkgname}" + cat >> "${pkgdir}/usr/bin/${pkgname}" <<EOD #! /usr/bin/sh -exec $_electron /usr/lib/bruno "\$@" +ELECTRON_IS_DEV=0 exec ${_electron} /usr/lib/bruno "\$@" EOD - install -Dm0644 license.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - install -d "$pkgdir/usr/lib/$pkgname/" - asar e "packages/bruno-electron/out/linux-unpacked/resources/app.asar" "$pkgdir/usr/lib/$pkgname/" + install -Dm0644 license.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -d "${pkgdir}/usr/lib/${pkgname}/" + asar e packages/bruno-electron/out/linux-unpacked/resources/app.asar "${pkgdir}/usr/lib/${pkgname}/" + + for i in 16 24 48 64 128 256 512 1024; do + install -Dm644 "packages/bruno-electron/resources/icons/png/${i}x${i}.png" "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/com.usebruno.app.Bruno.png" + done } diff --git a/com.usebruno.app.Bruno.desktop b/com.usebruno.app.Bruno.desktop new file mode 100644 index 000000000000..a3e788363632 --- /dev/null +++ b/com.usebruno.app.Bruno.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Bruno +Comment=Opensource API Client for Exploring and Testing APIs +Exec=/usr/bin/bruno %u +Terminal=false +Type=Application +Icon=com.usebruno.app.Bruno +StartupWMClass=Bruno +Categories=Development; |