diff --git a/packages/min/PKGBUILD b/packages/min/PKGBUILD index 33a567e..808b6d5 100644 --- a/packages/min/PKGBUILD +++ b/packages/min/PKGBUILD @@ -1,25 +1,25 @@ -# Maintainer: +# Maintainer: Mahdi Sarikhani # Contributor: kleintux # Contributor: Nicola Squartini pkgname=min -pkgver=1.32.1 +pkgver=1.33.0 pkgrel=1 pkgdesc='A fast, minimal browser that protects your privacy' arch=('any') url='https://minbrowser.org' license=('Apache-2.0') -_electron=electron29 +_electron=electron32 depends=('bash' "${_electron}" 'nodejs') makedepends=('git' 'npm') source=("https://github.com/minbrowser/min/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz" "${pkgname}.desktop" "${pkgname}.sh" 'build.patch') -sha256sums=('760fb5d4d10a8d5a44dad6f0e7b3ee58576f46fba5098df39a3fff8576c0086f' +sha256sums=('c740d73b5b430cb14cadb9edd4d634709f86b9f2e3edc60532f0b4b0b0a6ea26' 'bca3356dbf5c783b44d5eb0919e0dbb263869f5d89224cc210d50610f67f3c3c' '6dcadaf3e1ae6e619569df9c5500c7786eaebd0f978df14476f92147bc7cd34f' - '59d84d72eafbbdbcac40576a9a5c2a9098736bf7aa9baa5b63d0e206b635c9fc') + 'ac7c5ceaf6da8fbeeb2720aa2c11098dcaff4dde1254d022dbf804599020e0d6') prepare() { cd "${pkgname}-${pkgver}" diff --git a/packages/min/build.patch b/packages/min/build.patch index 8559bcd..e160566 100644 --- a/packages/min/build.patch +++ b/packages/min/build.patch @@ -1,19 +1,17 @@ diff --git a/scripts/buildLinux.js b/scripts/buildLinux.js new file mode 100644 -index 0000000..d81b74c +index 00000000..e9a35e13 --- /dev/null +++ b/scripts/buildLinux.js -@@ -0,0 +1,19 @@ +@@ -0,0 +1,17 @@ +const builder = require('electron-builder') -+const packageFile = require('./../package.json') -+const version = packageFile.version +const Platform = builder.Platform +const Arch = builder.Arch + +require('./createPackage.js')('linux', { arch: Arch.x64 }).then(function (path) { + const options = { + linux: { -+ target: ['dir'], ++ target: ['dir'] + } + } + @@ -24,17 +22,15 @@ index 0000000..d81b74c + }) +}) diff --git a/scripts/createPackage.js b/scripts/createPackage.js -index 88e1731..3a7a9da 100644 +index 17278d86..a049702e 100644 --- a/scripts/createPackage.js +++ b/scripts/createPackage.js -@@ -139,7 +139,9 @@ module.exports = function (platform, extraOptions) { - } - ], +@@ -141,6 +141,8 @@ module.exports = function (platform, extraOptions) { asar: false, -- afterPack: afterPack -+ afterPack: afterPack, + afterPack: afterPack, + publish: null, + electronDist: '@ELECTRON_DIST@', -+ electronVersion: '@ELECTRON_VERSION@' - } - - const target = (function () { ++ electronVersion: '@ELECTRON_VERSION@', + /* + Rebuilding native modules that use nan is currently broken for Electron 32+: https://github.com/nodejs/nan/issues/973 + This breaks PDFJS -> canvas, which causes packaging to fail.