diff --git a/WebHostLib/requirements.txt b/WebHostLib/requirements.txt index ea1e27f6..258fa423 100644 --- a/WebHostLib/requirements.txt +++ b/WebHostLib/requirements.txt @@ -1,7 +1,7 @@ flask>=2.1.2 pony>=0.7.16 waitress>=2.1.1 -flask-caching>=1.10.1 +flask-caching==1.10.1 Flask-Compress>=1.12 Flask-Limiter>=2.4.5.1 bokeh>=2.4.3 \ No newline at end of file diff --git a/setup.py b/setup.py index 3124f4de..fb466c8f 100644 --- a/setup.py +++ b/setup.py @@ -321,6 +321,7 @@ $APPDIR/$exe "$@" self.app_id = self.app_name.lower() def run(self): + import platform self.dist_file.parent.mkdir(parents=True, exist_ok=True) if self.app_dir.is_dir(): shutil.rmtree(self.app_dir) @@ -333,7 +334,7 @@ $APPDIR/$exe "$@" self.write_desktop() self.write_launcher(self.app_exec) print(f'{self.app_dir} -> {self.dist_file}') - subprocess.call(f'./appimagetool -n "{self.app_dir}" "{self.dist_file}"', shell=True) + subprocess.call(f'ARCH={platform.machine()} ./appimagetool -n "{self.app_dir}" "{self.dist_file}"', shell=True) cx_Freeze.setup(