mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 05:51:31 -04:00
Try to fix 32-bit MWS support
This commit is contained in:
parent
665ed3094e
commit
a1c6251150
@ -2,14 +2,13 @@ package net.filebot;
|
|||||||
|
|
||||||
import static java.nio.file.Files.*;
|
import static java.nio.file.Files.*;
|
||||||
import static java.nio.file.Paths.*;
|
import static java.nio.file.Paths.*;
|
||||||
|
import static net.filebot.platform.windows.WinAppUtilities.*;
|
||||||
import java.io.File;
|
|
||||||
|
|
||||||
public enum LicenseModel {
|
public enum LicenseModel {
|
||||||
|
|
||||||
MicrosoftStore {
|
MicrosoftStore {
|
||||||
|
|
||||||
private final Resource<Boolean> AUMID = Resource.lazy(() -> File.pathSeparatorChar == ';' && System.getProperty("java.home").contains("PointPlanck.FileBot") && !isWritable(get(System.getProperty("java.class.path"))));
|
private final Resource<Boolean> AUMID = Resource.lazy(() -> getPackageAppUserModelID().equals("PointPlanck.FileBot"));
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object check() throws LicenseError {
|
public Object check() throws LicenseError {
|
||||||
@ -27,7 +26,7 @@ public enum LicenseModel {
|
|||||||
|
|
||||||
MacAppStore {
|
MacAppStore {
|
||||||
|
|
||||||
private final Resource<Boolean> SANDBOX = Resource.lazy(() -> File.pathSeparatorChar == ':' && System.getenv("APP_SANDBOX_CONTAINER_ID").equals("net.filebot.FileBot") && !isReadable(get("/tmp")));
|
private final Resource<Boolean> SANDBOX = Resource.lazy(() -> System.getenv("APP_SANDBOX_CONTAINER_ID").equals("net.filebot.FileBot") && !isReadable(get("/tmp")));
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object check() throws LicenseError {
|
public Object check() throws LicenseError {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user