mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-28 01:10:52 +01:00
Added mac config
This commit is contained in:
parent
159c02001a
commit
25ab391a30
37
package.json
37
package.json
@ -36,6 +36,11 @@
|
|||||||
"build": "next build renderer && next export renderer",
|
"build": "next build renderer && next export renderer",
|
||||||
"pack-app": "npm run build && electron-builder --dir",
|
"pack-app": "npm run build && electron-builder --dir",
|
||||||
"dist": "npm run build && DEBUG=* electron-builder",
|
"dist": "npm run build && DEBUG=* electron-builder",
|
||||||
|
"dist:appimage": "npm run build && DEBUG=* electron-builder build -l AppImage",
|
||||||
|
"dist:flatpak": "npm run build && DEBUG=* electron-builder build -l flatpak",
|
||||||
|
"dist:dmg": "npm run build && DEBUG=* electron-builder build -m dmg flatpak",
|
||||||
|
"dist:msi": "npm run build && DEBUG=* electron-builder build -w nsis",
|
||||||
|
"dist:pkg": "npm run build && DEBUG=* electron-builder build -m pkg",
|
||||||
"publish-app": "export GH_TOKEN=<> && npm run build && electron-builder -w --publish always",
|
"publish-app": "export GH_TOKEN=<> && npm run build && electron-builder -w --publish always",
|
||||||
"publish-win": "set GH_TOKEN=<> && npm run build && electron-builder -w --publish always"
|
"publish-win": "set GH_TOKEN=<> && npm run build && electron-builder -w --publish always"
|
||||||
},
|
},
|
||||||
@ -60,9 +65,33 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mac": {
|
"mac": {
|
||||||
"icon": "main/build/icon.icns",
|
"type": "distribution",
|
||||||
"category": "public.app-category.graphics-design",
|
"hardenedRuntime": true,
|
||||||
"target": "dmg"
|
"entitlements": "resources/entitlements.mac.plist",
|
||||||
|
"entitlementsInherit": "resources/entitlements.mac.plist",
|
||||||
|
"gatekeeperAssess": false,
|
||||||
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "dmg",
|
||||||
|
"arch": [
|
||||||
|
"x64"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"dmg": {
|
||||||
|
"contents": [
|
||||||
|
{
|
||||||
|
"x": 130,
|
||||||
|
"y": 220
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"x": 410,
|
||||||
|
"y": 220,
|
||||||
|
"type": "link",
|
||||||
|
"path": "/Applications"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"linux": {
|
"linux": {
|
||||||
"publish": [
|
"publish": [
|
||||||
@ -82,7 +111,7 @@
|
|||||||
"github"
|
"github"
|
||||||
],
|
],
|
||||||
"target": [
|
"target": [
|
||||||
"msi"
|
"nsis"
|
||||||
],
|
],
|
||||||
"asarUnpack": [
|
"asarUnpack": [
|
||||||
"**/node_modules/sharp/**"
|
"**/node_modules/sharp/**"
|
||||||
|
@ -130,7 +130,6 @@ const Home = () => {
|
|||||||
|
|
||||||
const upscaylHandler = async () => {
|
const upscaylHandler = async () => {
|
||||||
if (imagePath !== "") {
|
if (imagePath !== "") {
|
||||||
resetImagePaths();
|
|
||||||
setProgress("Hold on...");
|
setProgress("Hold on...");
|
||||||
await window.electron.send(commands.UPSCAYL, {
|
await window.electron.send(commands.UPSCAYL, {
|
||||||
scaleFactor,
|
scaleFactor,
|
||||||
|
10
resources/entitlements.mac.plist
Normal file
10
resources/entitlements.mac.plist
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Loading…
Reference in New Issue
Block a user