From bab16812d0c39d2612271c5314fa0d6795c55da6 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 10 Aug 2018 15:44:39 +0700 Subject: [PATCH] Fix MAS builds --- source/net/filebot/LicenseModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/LicenseModel.java b/source/net/filebot/LicenseModel.java index 799626ae..c207da07 100644 --- a/source/net/filebot/LicenseModel.java +++ b/source/net/filebot/LicenseModel.java @@ -8,7 +8,7 @@ public enum LicenseModel { MicrosoftStore { - private final Resource AUMID = Resource.lazy(() -> getAppUserModelID() == null || getAppUserModelID().equals("PointPlanck.FileBot")); + private final Resource AUMID = Resource.lazy(() -> getAppUserModelID() == null && !isWritable(get(System.getProperty("java.class.path")))); @Override public Object check() throws LicenseError {