From 5622d921065571938be1647b890ec38e86083371 Mon Sep 17 00:00:00 2001 From: WorriedArrow Date: Sat, 14 Jan 2023 13:41:14 -0800 Subject: [PATCH] readme: fix build instructions --- README.md | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);