Skip to content

Commit 66299ce

Browse files
authored
Macos (#19)
1 parent 6136eda commit 66299ce

File tree

18 files changed

+115
-92
lines changed

18 files changed

+115
-92
lines changed

.erb/scripts/DoNothing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exports.default = () => {};

.erb/scripts/Notarize.js

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1-
exports.default = async function notarizeMacos() {
2-
console.warn('Skipping notarizing step.');
1+
const { notarize } = require('electron-notarize');
2+
const { build } = require('../../package.json');
3+
4+
exports.default = async function notarizeMacos(context) {
5+
const { electronPlatformName, appOutDir } = context;
6+
if (electronPlatformName !== 'darwin') {
7+
return;
8+
}
9+
10+
if (!('APPLE_ID' in process.env && 'APPLE_ID_PASS' in process.env)) {
11+
console.warn(
12+
'Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set'
13+
);
14+
return;
15+
}
16+
17+
const appName = context.packager.appInfo.productFilename;
18+
19+
await notarize({
20+
appBundleId: build.appId,
21+
appPath: `${appOutDir}/${appName}.app`,
22+
appleId: process.env.APPLE_ID,
23+
appleIdPassword: process.env.APPLE_ID_PASS,
24+
});
325
};

.github/ISSUE_TEMPLATE/1-Bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,6 @@ labels: 'bug'
5252
<!--- Include as many relevant details about the environment you experienced the bug in -->
5353

5454
- Node version:
55-
- PlainPrinter version or branch:
55+
- Screen Printer version or branch:
5656
- Operating System and version:
5757
- Link to your project:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
name: Feature request
3-
about: You want something added to PlainPrinter. 🎉
3+
about: You want something added to Screen Printer. 🎉
44
labels: 'enhancement'
55
---

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ logs
66
pids
77
*.pid
88
*.seed
9+
*.p12
910

1011
# Coverage directory used by tools like istanbul
1112
coverage

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Publish](https://github.com/plainlab/plainprinter/actions/workflows/publish.yml/badge.svg)](https://github.com/plainlab/plainprinter/actions/workflows/publish.yml)
22
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/plainlab/plainprinter)](https://github.com/plainlab/plainprinter/releases/latest)
33

4-
# PlainPrinter
4+
# Screen Printer
55

66
> Take multiple screenshots and convert them into a PDF file
77

assets/embedded.provisionprofile

11.9 KB
Binary file not shown.

assets/entitlements.mas.inherit.plist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.inherit</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
10+
<true/>
11+
<key>com.apple.security.cs.disable-library-validation</key>
12+
<true/>
13+
</dict>
14+
</plist>

assets/entitlements.mas.plist

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.cs.allow-jit</key>
8+
<true/>
9+
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
10+
<true/>
11+
<key>com.apple.security.cs.disable-library-validation</key>
12+
<true/>
13+
</dict>
14+
</plist>

assets/icon.icns

98.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)