Browse Source

Prompt to proceed if Rack crashes or contains log warnings.

pull/785/head
Andrew Belt 3 years ago
parent
commit
47591fb783
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      scripts/update.py

+ 7
- 3
scripts/update.py View File

@@ -92,7 +92,7 @@ for plugin_path in plugin_paths:
print(f"Building {slug}") print(f"Building {slug}")
try: try:
common.system(f'cd "{TOOLCHAIN_DIR}" && make plugin-build-clean') common.system(f'cd "{TOOLCHAIN_DIR}" && make plugin-build-clean')
common.system(f'cd "{TOOLCHAIN_DIR}" && make -j$(nproc) plugin-build PLUGIN_DIR={plugin_path}')
common.system(f'cd "{TOOLCHAIN_DIR}" && make -j$(nproc) plugin-build PLUGIN_DIR="{plugin_path}"')
common.system(f'cp -v "{TOOLCHAIN_DIR}"/plugin-build/* "{PACKAGES_DIR}"/') common.system(f'cp -v "{TOOLCHAIN_DIR}"/plugin-build/* "{PACKAGES_DIR}"/')
common.system(f'cp -v "{TOOLCHAIN_DIR}"/plugin-build/*-lin.vcvplugin "{RACK_USER_PLUGIN_DIR}"') common.system(f'cp -v "{TOOLCHAIN_DIR}"/plugin-build/*-lin.vcvplugin "{RACK_USER_PLUGIN_DIR}"')
except Exception as e: except Exception as e:
@@ -144,8 +144,12 @@ manifest_versions_str = ", ".join(map(lambda pair: pair[0] + " to " + pair[1], m
print() print()
print(f"Press enter to launch Rack and test the following packages: {manifest_versions_str}") print(f"Press enter to launch Rack and test the following packages: {manifest_versions_str}")
input() input()
common.system(f"cd {RACK_SYSTEM_DIR} && ./Rack")
common.system(f"cd {RACK_USER_DIR} && grep 'warn' log.txt || true")
try:
common.system(f"cd {RACK_SYSTEM_DIR} && ./Rack")
common.system(f"cd {RACK_USER_DIR} && grep 'warn' log.txt || true")
except:
print(f"Rack failed! Enter to continue if desired")

print(f"Press enter to generate screenshots, upload packages, upload screenshots, and commit/push the library repo.") print(f"Press enter to generate screenshots, upload packages, upload screenshots, and commit/push the library repo.")
input() input()




Loading…
Cancel
Save