Simple Copy Protection MacOS Issue
-
@Adam_G write permissions.
Project settings, use global app data folder on macOS.
-
@aaronventure thanks, where do i enable write permissions? i tried in packages but no luck
-
@Adam_G
Did you use FileSystem.AppData? You should actually be able to write the data with this. -
@Oli-Ullmann imjust using the boiler plate example but the code looks like this
// Stores the file to the hard drive. In HISE it will be the project folder // but in the compiled plugin it will use the parent directory to the // user preset directory (which is usually the app data folder). Engine.dumpAsJSON(data, "../RegistrationInfo.js");
i think the issue is as @aaronventure said and its a flag that im missing but im really not seeing where. it works fine, just under certain condition. the folder needs to be present but empty.. gotta mean im doing something wrong in packages i think
-
@Adam_G
Ok, I don't quite understand you yet.Are you having problems writing the file from HISE? So Engine.dumpAsJSON(data, “../RegistrationInfo.js”); does not work? This has nothing to do with packages.
If you are inside HISE, the file should be created in the HISE project folder. If you are in the compiled plug-in, the file should be written here:
user/library/application support/company name/productAttention: The file is written to the USER library folder and not to the general library folder! Maybe you are looking in the wrong folder?
-
@Oli-Ullmann sorry no this is in the exported plugin. it works fine on windows but on macos it is not creating the json file with the serial. and prompts for it every time the plugin is loaded
-
@Adam_G
Can you please post a snippet of the corresponding code? -
@Oli-Ullmann again im just using the example project https://github.com/christophhart/hise_tutorial "Simple Copy Protection" so i know its not related to the code
-
@Adam_G
Ok, I took the time to create and compile a project based on the Simple Copy Protection demo.Everything works fine for me in the compiled plug-in. The “RegistrationInfo.js” file is also written without any problems.
I didn't have to change anything in the HISE settings or set any flags or anything similar.
Of course, I had to include the “Serials.js” in my HISE project.
And I had to create a variable in the “Serials.js” to which the serial numbers are assigned. As follows:
const serials = { “Data": [ “RURU-713P-63DR-7IJ4”, “QFS6-2FB5-CL8M-P4MU”, “E38Y-67M1-RUR4-FAT5”, ... ] }
-
@Adam_G
Here is my project if you would like to take a look at it: