Skip to content

Commit

Permalink
zettlr: update to 3.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
herbygillot committed Aug 29, 2024
1 parent f4c2a30 commit ed53b12
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
25 changes: 11 additions & 14 deletions editors/zettlr/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PortSystem 1.0
PortGroup github 1.0

github.setup Zettlr Zettlr 2.3.0 v
github.setup Zettlr Zettlr 3.2.0 v
github.tarball_from archive
name zettlr
revision 0
Expand All @@ -30,19 +30,21 @@ maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
supported_archs x86_64 arm64

checksums rmd160 3e02ad655b229515a4b28d911c79aa956d6e748e \
sha256 5b9bea09d48f74f0fa8e232cee4b9022d7b9b23d16c23e1acfa7093f6f6971eb \
size 28392827
fetch.type git

depends_build port:yarn
patchfiles-append patch-disable-signing-forge.config.js.diff

depends_build-append \
bin:git:git \
port:yarn

build.env-append CSC_IDENTITY_AUTO_DISCOVERY=false

use_configure no
use_xcode yes

build {
switch $build_arch {
switch ${build_arch} {
x86_64 {
set package_target {mac-x64}
}
Expand All @@ -52,13 +54,7 @@ build {
}

# Fetch and build JS dependencies
system -W ${worksrcpath} "${build.env} yarn install --frozen-lockfile"

# We allow Zettlr to download its own Pandoc bin, as:
# a) It seeks a more recent version than the one MacPorts provides
# b) It will be embedded into the .app bundle and not affect the ports
# tree.
system -W ${worksrcpath} "${build.env} ./scripts/get-pandoc.sh darwin"
system -W ${worksrcpath} "${build.env} yarn install --immutable"

# Build electron app
system -W ${worksrcpath} "${build.env} yarn package:${package_target}"
Expand All @@ -74,7 +70,8 @@ destroot {
}
}

copy ${worksrcpath}/out/Zettlr-darwin-${outdir_suffix}/Zettlr.app \
copy \
${worksrcpath}/out/Zettlr-darwin-${outdir_suffix}/Zettlr.app \
${destroot}${applications_dir}
}

Expand Down
19 changes: 19 additions & 0 deletions editors/zettlr/files/patch-disable-signing-forge.config.js.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
--- forge.config.js 2024-08-28 23:44:48
+++ forge.config.js 2024-08-28 23:45:12
@@ -177,16 +177,6 @@
// with capital Z) we have to explicitly set executableName on the Linux
// target.
name: 'Zettlr',
- // The certificate is written to the default keychain during CI build.
- // See ./scripts/add-osx-cert.sh
- osxSign: {
- identity: 'Developer ID Application: Hendrik Erz (QS52BN8W68)',
- 'hardened-runtime': true,
- 'gatekeeper-assess': false,
- entitlements: 'scripts/assets/entitlements.plist',
- 'entitlements-inherit': 'scripts/assets/entitlements.plist',
- 'signature-flags': 'library'
- },
// Since electron-notarize 1.1.0 it will throw instead of simply print a
// warning to the console, so we have to actively check if we should
// notarize or not. We do so by checking for the necessary environment

0 comments on commit ed53b12

Please sign in to comment.