diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 55 | ||||
-rw-r--r-- | path.patch | 25 |
3 files changed, 40 insertions, 60 deletions
@@ -1,19 +1,13 @@ pkgbase = firecamp - pkgdesc = firecamp, A campsite for developers. - pkgver = 1.4.4 + pkgdesc = API platform for your favorite API-style + pkgver = 2.3.1 pkgrel = 1 - url = https://firecamp.app/ + url = https://firecamp.io/download arch = x86_64 - license = unknown + license = custom: Firecamp makedepends = p7zip - makedepends = asar - depends = electron8 - provides = firecamp - options = !strip - source = firecamp-1.4.4.orig.appimage::https://firecamp.ams3.digitaloceanspaces.com/versions/linux/Firecamp-1.4.4.AppImage - source = path.patch - sha256sums = 240c94d2b5242e39ffb27287abc9c9ba7456a204036db9dd46f97f5d47b277cd - sha256sums = SKIP + depends = electron12 + source = firecamp-2.3.1.orig.appimage::https://firecamp.ams3.digitaloceanspaces.com/versions/linux/Firecamp-2.3.1.AppImage + sha256sums = 1fd581a94cc3f4f6a3978578e69c6312d69126a026dd0f559a557c72d7db9a66 pkgname = firecamp - @@ -1,36 +1,47 @@ -# Maintainer: Bruce Zhang +# Maintainer: Bruce Zhang (bruceutut) pkgname=firecamp -pkgver=1.4.4 +pkgver=2.3.1 pkgrel=1 -pkgdesc="firecamp, A campsite for developers." +pkgdesc='API platform for your favorite API-style' arch=('x86_64') -url="https://firecamp.app/" -license=('unknown') -depends=('electron8') -makedepends=('p7zip' 'asar') -provides=('firecamp') -options=('!strip') -source=( - "$pkgname-$pkgver.orig.appimage::https://firecamp.ams3.digitaloceanspaces.com/versions/linux/Firecamp-$pkgver.AppImage" - "path.patch" -) -sha256sums=('240c94d2b5242e39ffb27287abc9c9ba7456a204036db9dd46f97f5d47b277cd' 'SKIP') +url='https://firecamp.io/download' +license=('custom: Firecamp') +makedepends=('p7zip') +depends=('electron12') +source=("$pkgname-$pkgver.orig.appimage::https://firecamp.ams3.digitaloceanspaces.com/versions/linux/Firecamp-$pkgver.AppImage") +sha256sums=('1fd581a94cc3f4f6a3978578e69c6312d69126a026dd0f559a557c72d7db9a66') prepare() { - cd "$srcdir" 7z x "$pkgname-$pkgver.orig.appimage" -ofirecamp cd firecamp/resources - asar e app.asar app - patch -s -p0 < "$srcdir/path.patch" + echo "#!/usr/bin/env sh export ELECTRON_IS_DEV=0 -exec electron8 /usr/share/firecamp/app \$@ --no-sandbox" > "$srcdir/firecamp.sh" +exec electron12 /usr/lib/firecamp/app.asar --no-sandbox \$@ +" > "$srcdir/firecamp.sh" + + echo "[Desktop Entry] +Name=Firecamp +Exec=/usr/bin/firecamp %U +Terminal=false +Type=Application +Icon=firecamp +StartupWMClass=Firecamp +X-AppImage-Version=2.3.1 +Comment=One playstation for all your Request. +MimeType=x-scheme-handler/fc; +Categories=Development; +" > "$srcdir/firecamp.desktop" } package() { cd "$srcdir/firecamp/resources" - mkdir -p "$pkgdir/usr/share/firecamp" - cp -r app "$pkgdir/usr/share/firecamp/app" - cp -r "$srcdir/firecamp/resources/node_modules/google-protobuf" "$pkgdir/usr/share/firecamp/app/node_modules" - install -Dm755 "$srcdir/firecamp.sh" "$pkgdir/usr/bin/firecamp" + install -vDm644 app.asar "$pkgdir/usr/lib/firecamp/app.asar" + install -vDm644 app-update.yml "$pkgdir/usr/lib/firecamp/app-update.yml" + cp -rv {services,node_modules,assets} "$pkgdir/usr/lib/firecamp/" + install -vDm755 "$srcdir/firecamp.sh" "$pkgdir/usr/bin/firecamp" + install -vDm644 "$srcdir/firecamp.desktop" "$pkgdir/usr/share/applications/firecamp.desktop" + + cd "$srcdir/firecamp" + install -vDm644 usr/share/icons/hicolor/0x0/apps/firecamp.png "$pkgdir/usr/share/icons/hicolor/512x512/apps/firecamp.png" } diff --git a/path.patch b/path.patch deleted file mode 100644 index 4221a96aea13..000000000000 --- a/path.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -ruN app/services/icon-path/index.js app_new/services/icon-path/index.js ---- app/services/icon-path/index.js 2020-12-04 16:57:28.158203215 +0800 -+++ app_new/services/icon-path/index.js 2020-12-04 17:05:31.062678085 +0800 -@@ -22,7 +22,7 @@ - } else { - if (process.platform === "linux") - trayIcon = path.join( -- process.resourcesPath, -- "assets/icons/images/22x22.png" -+ "/usr/share/firecamp/app", -+ "assets/icons/png/24x24.png" - ); - else if (process.platform === "darwin") -diff -ruN app/services/protobuf/index.js app_new/services/protobuf/index.js ---- app/services/protobuf/index.js 2020-12-04 17:02:45.669701138 +0800 -+++ app_new/services/protobuf/index.js 2020-12-04 17:03:38.614007488 +0800 -@@ -384,7 +384,7 @@ - } - - init() { -- this.loadModule(); -+ // this.loadModule(); - this.compileSchema(); - this.fetchInputObject(); - this.encodePayload(); |