From 3a617933aa68935bc323b531f4ad4bc7963e1443 Mon Sep 17 00:00:00 2001
From: dragonwocky <thedragonring.bod@gmail.com>
Date: Mon, 15 Jun 2020 21:32:45 +1000
Subject: [PATCH] move enhancer_version.txt into app folder

---
 customiser.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/customiser.py b/customiser.py
index 6e05101..437831c 100644
--- a/customiser.py
+++ b/customiser.py
@@ -52,8 +52,8 @@ try:
             unpacking_asar = False
             print(' * app.asar was already unpacked: checking version.')
             cleaning_asar = True
-            if os.path.isfile(filepath + '/ENHANCER_VERSION.txt'):
-                with open(filepath + '/ENHANCER_VERSION.txt', 'r', encoding='UTF-8') as content:
+            if os.path.isfile(filepath + '/app/ENHANCER_VERSION.txt'):
+                with open(filepath + '/app/ENHANCER_VERSION.txt', 'r', encoding='UTF-8') as content:
                     if content.read() == enhancer_version:
                         cleaning_asar = False
             if cleaning_asar:
@@ -86,7 +86,7 @@ try:
                         '/app.asar', filepath + '/app'], shell=(True if sys.platform == 'win32' else False))
         print(' ...renaming asar.app to asar.app.bak')
         os.rename(filepath + '/app.asar', filepath + '/app.asar.bak')
-        with open(filepath + '/ENHANCER_VERSION.txt', 'w', encoding='UTF-8') as write:
+        with open(filepath + '/app/ENHANCER_VERSION.txt', 'w', encoding='UTF-8') as write:
             write.write(enhancer_version)
 
     if os.path.isfile(filepath + '/app/renderer/preload.js'):