Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

min v1.33.0-1 #138

Merged
merged 1 commit into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions packages/min/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# Maintainer:
# Maintainer: Mahdi Sarikhani <mahdisarikhani@outlook.com>
# Contributor: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
# Contributor: Nicola Squartini <tensor5@gmail.com>

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}"
Expand Down
26 changes: 11 additions & 15 deletions packages/min/build.patch
Original file line number Diff line number Diff line change
@@ -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']
+ }
+ }
+
Expand All @@ -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.
Loading