diff --git a/README.md b/README.md index 49c7a1f..a979c65 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ $ npm install ``` Then, simply run: ``` -$ pkg . +$ npm run build ``` Then, the executables should be in `/dist`. Run your platform's executable to test your code out! diff --git a/index.js b/index.js index 8e8b91a..0652986 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ if(!existsSync(settingsJson)) { } let data = JSON.parse(readFileSync(settingsJson).toString()); -var minified = readFileSync(join(__dirname, "dist", "openloader.min.js")); +var minified = readFileSync(join(__dirname, "dist", "openloader.min.js")).toString(); if(!data.openasar) { console.log("Error: No OpenAsar found in your settings.json. Please install OpenAsar (https://openasar.dev) before attempting to install OpenLoader."); process.exit(1);