diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cac3be6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +am2r_15_2/ +ARCHIVE-am2r_15_2/ +AM2R_11.zip \ No newline at end of file diff --git a/patcher.py b/patcher.py index 0f25ce2..5607dde 100644 --- a/patcher.py +++ b/patcher.py @@ -135,7 +135,11 @@ if (type == '1'): print("Creating Appimage...") copytree("patch_data/AM2R.AppDir", "AM2R.AppDir") subprocess.call(["cp", "-rpT", output , "AM2R.AppDir/usr/bin"]) - retcode = os.system("./AppImageCreation.sh AM2R.AppDir &> /dev/null") + fd = os.open("/dev/null", os.O_WRONLY) + savefd = os.dup(2) + os.dup2(fd,2) + subprocess.call(["sh", "./AppImageCreation.sh", "-n"]) + os.dup2(savefd,2) rename("AM2R-x86_64.AppImage", "AM2R.AppImage") rmtree("AM2R.AppDir")