Skip to content

Instantly share code, notes, and snippets.

@ivanpu
Last active October 17, 2018 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivanpu/66dd3f120ef289a90e8b6fcab9548c8f to your computer and use it in GitHub Desktop.
Save ivanpu/66dd3f120ef289a90e8b6fcab9548c8f to your computer and use it in GitHub Desktop.
postman PKGBUILD
/pkg/
/src/
*.zip
*.pkg.tar.xz
# Generated by mksrcinfo v8
# Wed Oct 17 17:54:29 UTC 2018
pkgbase = postman
pkgdesc = Build, test, and document your APIs faster
pkgver = 6.4.4
pkgrel = 1
url = https://www.getpostman.com
arch = x86_64
license = custom
depends = electron
conflicts = postman-bin
source = postman-6.4.4.zip::https://dl.pstmn.io/download/version/6.4.4/linux64
source = remove-updater.patch
sha256sums = 0daec7b8e6e92515a4100603e69cc9035dbb74b6d5669e832d9bfccadea394b6
sha256sums = eebcce1e81824b61fd64ccb2c08ec2c7c06a0aacdc4fdc14d6b06ecd92ceed8e
pkgname = postman
# Maintainer: kitsunyan <`echo a2l0c3VueWFuQGFpcm1haWwuY2MK | base64 -d`>
# Contributor: ivan_p
pkgname=postman
pkgver=6.4.4
pkgrel=1
pkgdesc='Build, test, and document your APIs faster'
arch=('x86_64')
url='https://www.getpostman.com'
license=('custom')
depends=(electron)
conflicts=(postman-bin)
source=("postman-$pkgver.zip::https://dl.pstmn.io/download/version/${pkgver}/linux64"
'remove-updater.patch')
sha256sums=('0daec7b8e6e92515a4100603e69cc9035dbb74b6d5669e832d9bfccadea394b6'
'eebcce1e81824b61fd64ccb2c08ec2c7c06a0aacdc4fdc14d6b06ecd92ceed8e')
prepare() {
cd "$srcdir/Postman/app/resources/app"
# remove updater from settings and menu, disable updates and analytics
patch -Np1 -r - --no-backup-if-mismatch -i "$srcdir/remove-updater.patch"
}
package() {
cd "$srcdir/Postman/app"
mkdir -p "$pkgdir/usr/lib/"
cp -rp 'resources/app' "$pkgdir/usr/lib/postman"
# install licenses
find . -maxdepth 1 -iname 'license*' -print0 |
xargs -n 1 -0 -I {} install -Dm644 {} "$pkgdir/usr/share/licenses/$pkgname/{}"
# create run script
mkdir -p "$pkgdir/usr/bin"
printf '%s\n' \
'#!/bin/sh' \
'exec /usr/lib/electron/electron /usr/lib/postman "$@"' \
> "$pkgdir/usr/bin/postman"
chmod a+x "$pkgdir/usr/bin/postman"
# create desktop file
mkdir -p "$pkgdir/usr/share/applications"
printf '%s\n' \
'[Desktop Entry]' \
'Name=Postman' \
'Comment=Build, test, and document your APIs faster' \
'Exec=/usr/bin/postman %U' \
'Terminal=false' \
'Type=Application' \
'Icon=postman' \
'Categories=Development;Utility;' \
> "$pkgdir/usr/share/applications/postman.desktop"
# create icons
install -Dm644 'resources/app/assets/icon.png' \
"$pkgdir/usr/share/icons/hicolor/128x128/apps/postman.png"
}
--- a/services/menuManager.js
+++ b/services/menuManager.js
@@ -19,5 +19,0 @@
- {
- label: 'Check for Updates...',
- click: function (menuItem, browserWindow, options) { menuManager.handleMenuAction('checkElectronUpdates', null, options); }
- },
- { type: 'separator' },
@@ -362,5 +357,0 @@
- {
- label: 'Check for Updates',
- click: function (menuItem, browserWindow, options) { menuManager.handleMenuAction('checkElectronUpdates', null, options); }
- },
- { type: 'separator' },
--- a/js/RequesterModalContainer.js
+++ b/js/RequesterModalContainer.js
@@ -13086,3 +12086,0 @@
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_5__components_settings_SettingsTabContent__["a" /* default */], { key: __WEBPACK_IMPORTED_MODULE_16__constants_SettingsTypeConstants__["j" /* SETTINGS_UPDATE */] },
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__SettingsUpdateContainer__["a" /* default */], null)),
-
@@ -13138,1 +13135,0 @@
- __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__base_Tabs__["a" /* Tab */], { refKey: __WEBPACK_IMPORTED_MODULE_2__constants_SettingsTypeConstants__["j" /* SETTINGS_UPDATE */] }, 'Update'),
--- a/js/vendor-shared.js
+++ b/js/vendor-shared.js
@@ -76714,2 +76714,2 @@
-window.DISABLE_ANALYTICS = false;
-window.DISABLE_UPDATES = false;
+window.DISABLE_ANALYTICS = true;
+window.DISABLE_UPDATES = true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment