mirror of
https://github.com/upscayl/upscayl.git
synced 2025-01-19 01:24:09 +01:00
Update app store build and binaries
This commit is contained in:
parent
c3b124cba1
commit
ab070b0563
3
.gitignore
vendored
3
.gitignore
vendored
@ -48,4 +48,5 @@ build-dir/
|
|||||||
main/*.js
|
main/*.js
|
||||||
main/utils/*.js
|
main/utils/*.js
|
||||||
|
|
||||||
.env
|
.env
|
||||||
|
*.provisionprofile
|
@ -40,7 +40,7 @@ app.on("ready", async () => {
|
|||||||
autoUpdater.checkForUpdates();
|
autoUpdater.checkForUpdates();
|
||||||
}
|
}
|
||||||
|
|
||||||
log.info("🚀 UPSCAYL EXEC PATH: ", execPath("realesrgan"));
|
log.info("🚀 UPSCAYL EXEC PATH: ", execPath("bin"));
|
||||||
log.info("🚀 MODELS PATH: ", modelsPath);
|
log.info("🚀 MODELS PATH: ", modelsPath);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -15,8 +15,7 @@ const binariesPath = isDev
|
|||||||
? join(appRootDir, "resources", getPlatform()!, "bin")
|
? join(appRootDir, "resources", getPlatform()!, "bin")
|
||||||
: join(dirname(appRootDir), "bin");
|
: join(dirname(appRootDir), "bin");
|
||||||
|
|
||||||
const execPath = (execName) =>
|
const execPath = (execName) => resolve(join(binariesPath, `./upscayl-bin`));
|
||||||
resolve(join(binariesPath, `./upscayl-${execName}`));
|
|
||||||
|
|
||||||
const modelsPath = isDev
|
const modelsPath = isDev
|
||||||
? resolve(join(appRootDir, "resources", "models"))
|
? resolve(join(appRootDir, "resources", "models"))
|
||||||
|
@ -8,7 +8,7 @@ export const spawnUpscayl = (
|
|||||||
) => {
|
) => {
|
||||||
logit("📢 Upscayl Command: ", command);
|
logit("📢 Upscayl Command: ", command);
|
||||||
|
|
||||||
const spawnedProcess = spawn(execPath(binaryName), command, {
|
const spawnedProcess = spawn(execPath("bin"), command, {
|
||||||
cwd: undefined,
|
cwd: undefined,
|
||||||
detached: false,
|
detached: false,
|
||||||
});
|
});
|
||||||
|
29
package.json
29
package.json
@ -48,6 +48,7 @@
|
|||||||
"dist:pkg": "tsc && npm run build && cross-env DEBUG=* electron-builder build -m pkg",
|
"dist:pkg": "tsc && npm run build && cross-env DEBUG=* electron-builder build -m pkg",
|
||||||
"dist:mac": "tsc && npm run build && electron-builder --mac --universal",
|
"dist:mac": "tsc && npm run build && electron-builder --mac --universal",
|
||||||
"dist:mac-arm64": "tsc && npm run build && electron-builder --mac --arm64",
|
"dist:mac-arm64": "tsc && npm run build && electron-builder --mac --arm64",
|
||||||
|
"dist:mac-mas": "tsc && npm run build && electron-builder --mac mas --universal",
|
||||||
"dist:win": "tsc && npm run build && electron-builder --win",
|
"dist:win": "tsc && npm run build && electron-builder --win",
|
||||||
"dist:linux": "tsc && npm run build && electron-builder --linux",
|
"dist:linux": "tsc && npm run build && electron-builder --linux",
|
||||||
"publish-app": "tsc && npm run build && electron-builder -wlm --publish always",
|
"publish-app": "tsc && npm run build && electron-builder -wlm --publish always",
|
||||||
@ -95,6 +96,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"mac": {
|
"mac": {
|
||||||
|
"type": "distribution",
|
||||||
"category": "public.app-category.photography",
|
"category": "public.app-category.photography",
|
||||||
"hardenedRuntime": true,
|
"hardenedRuntime": true,
|
||||||
"gatekeeperAssess": false,
|
"gatekeeperAssess": false,
|
||||||
@ -113,9 +115,34 @@
|
|||||||
"arch": [
|
"arch": [
|
||||||
"universal"
|
"universal"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target": "mas",
|
||||||
|
"arch": [
|
||||||
|
"universal"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"x64ArchFiles": "*"
|
"x64ArchFiles": "*",
|
||||||
|
"provisioningProfile": "embedded.provisionprofile"
|
||||||
|
},
|
||||||
|
"mas": {
|
||||||
|
"hardenedRuntime": false,
|
||||||
|
"type": "distribution",
|
||||||
|
"category": "public.app-category.photography",
|
||||||
|
"entitlements": "resources/entitlements.mac.plist",
|
||||||
|
"entitlementsInherit": "resources/entitlements.mac.plist",
|
||||||
|
"provisioningProfile": "embedded.provisionprofile",
|
||||||
|
"mergeASARs": false,
|
||||||
|
"x64ArchFiles": "*",
|
||||||
|
"target": [
|
||||||
|
{
|
||||||
|
"target": "pkg",
|
||||||
|
"arch": [
|
||||||
|
"universal"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"dmg": {
|
"dmg": {
|
||||||
"sign": "false",
|
"sign": "false",
|
||||||
|
@ -18,7 +18,7 @@ function Footer() {
|
|||||||
href="https://github.com/upscayl"
|
href="https://github.com/upscayl"
|
||||||
className="font-bold"
|
className="font-bold"
|
||||||
target="_blank">
|
target="_blank">
|
||||||
TGS963 and Nayam Amarshe
|
The Upscayl Team
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
@ -21,6 +21,7 @@ import OverwriteToggle from "./OverwriteToggle";
|
|||||||
import { UpscaylCloudModal } from "../UpscaylCloudModal";
|
import { UpscaylCloudModal } from "../UpscaylCloudModal";
|
||||||
import { ResetSettings } from "./ResetSettings";
|
import { ResetSettings } from "./ResetSettings";
|
||||||
import ProcessImageToggle from "./ProcessImageToggle";
|
import ProcessImageToggle from "./ProcessImageToggle";
|
||||||
|
import { flag } from "@/utils/flags";
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
batchMode: boolean;
|
batchMode: boolean;
|
||||||
@ -189,7 +190,7 @@ function SettingsTab({
|
|||||||
target="_blank">
|
target="_blank">
|
||||||
Read Wiki Guide
|
Read Wiki Guide
|
||||||
</a>
|
</a>
|
||||||
<DonateButton />
|
{flag("IS_APPLE_STORE_BUILD") && <DonateButton />}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<LogArea
|
<LogArea
|
||||||
|
@ -605,7 +605,7 @@ const Home = () => {
|
|||||||
}}
|
}}
|
||||||
draggable="false"
|
draggable="false"
|
||||||
alt=""
|
alt=""
|
||||||
className="h-full w-full bg-[#1d1c23] object-contain"
|
className="h-full w-full bg-gradient-to-br from-base-300 to-base-100 object-contain"
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@ -659,7 +659,7 @@ const Home = () => {
|
|||||||
backgroundPosition: "0% 0%",
|
backgroundPosition: "0% 0%",
|
||||||
transformOrigin: backgroundPosition,
|
transformOrigin: backgroundPosition,
|
||||||
}}
|
}}
|
||||||
className={`h-full w-full bg-[#1d1c23] transition-transform group-hover:scale-[${zoomAmount}]`}
|
className={`h-full w-full bg-gradient-to-br from-base-300 to-base-100 transition-transform group-hover:scale-[${zoomAmount}]`}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
@ -678,7 +678,7 @@ const Home = () => {
|
|||||||
transformOrigin: backgroundPosition,
|
transformOrigin: backgroundPosition,
|
||||||
}}
|
}}
|
||||||
onMouseMove={handleMouseMove}
|
onMouseMove={handleMouseMove}
|
||||||
className={`h-full w-full bg-[#1d1c23] transition-transform group-hover:scale-[${zoomAmount}]`}
|
className={`h-full w-full bg-gradient-to-br from-base-300 to-base-100 transition-transform group-hover:scale-[${zoomAmount}]`}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
|
@ -180,6 +180,28 @@
|
|||||||
-webkit-app-region: drag;
|
-webkit-app-region: drag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.checkerboard {
|
||||||
|
background-color: rgba(255, 255, 255);
|
||||||
|
background-image: linear-gradient(
|
||||||
|
45deg,
|
||||||
|
#000 25%,
|
||||||
|
transparent 25%,
|
||||||
|
transparent 75%,
|
||||||
|
#000 75%,
|
||||||
|
#000
|
||||||
|
),
|
||||||
|
linear-gradient(
|
||||||
|
-45deg,
|
||||||
|
#000 25%,
|
||||||
|
transparent 25%,
|
||||||
|
transparent 75%,
|
||||||
|
#000 75%,
|
||||||
|
#000
|
||||||
|
);
|
||||||
|
background-size: 40px 40px;
|
||||||
|
background-repeat: repeat;
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes animate-step-in {
|
@keyframes animate-step-in {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": ["./*"],
|
||||||
"@common/*": ["../common/*"]
|
"@common/*": ["../common/*"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
8
renderer/utils/flags.ts
Normal file
8
renderer/utils/flags.ts
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
export const FLAGS = {
|
||||||
|
IS_APPLE_STORE_BUILD: "IS_APPLE_STORE_BUILD",
|
||||||
|
};
|
||||||
|
|
||||||
|
// Get flag from process.env
|
||||||
|
export const flag = (flag: keyof typeof FLAGS) => {
|
||||||
|
return process.env[flag];
|
||||||
|
};
|
@ -2,6 +2,12 @@
|
|||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
|
<key>com.apple.security.app-sandbox</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.application-groups</key>
|
||||||
|
<array>
|
||||||
|
<string>W2T4W74X87.org.upscayl.Upscayl</string>
|
||||||
|
</array>
|
||||||
<key>com.apple.security.automation.apple-events</key>
|
<key>com.apple.security.automation.apple-events</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||||
|
14
resources/entitlements.mas.inherit.plist
Normal file
14
resources/entitlements.mas.inherit.plist
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?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.app-sandbox</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-jit</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-unsigned-executable-memory</key>
|
||||||
|
<true/>
|
||||||
|
<key>com.apple.security.inherit</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
8
resources/entitlements.mas.loginhelper.plist
Normal file
8
resources/entitlements.mas.loginhelper.plist
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<?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.app-sandbox</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user