1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-08 20:39:44 -05:00

Try to fix 32-bit MWS support

This commit is contained in:
Reinhard Pointner 2018-08-13 19:09:28 +07:00
parent 665ed3094e
commit a1c6251150

View File

@ -2,14 +2,13 @@ package net.filebot;
import static java.nio.file.Files.*;
import static java.nio.file.Paths.*;
import java.io.File;
import static net.filebot.platform.windows.WinAppUtilities.*;
public enum LicenseModel {
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
public Object check() throws LicenseError {
@ -27,7 +26,7 @@ public enum LicenseModel {
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
public Object check() throws LicenseError {