This commit is contained in:
Matias Lavik 2022-09-26 20:39:29 +02:00
Родитель 4edea6a84e
Коммит b6b600dc5d
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -26,8 +26,10 @@ for asset in assets:
dest_asset = os.path.join(export_project_path, "Assets", "UnityVolumeRendering", asset)
copy_filedir(asset, dest_asset)
command_string = "\"{unity_path}\" -batchmode -nographics -projectPath -silent-crashes {project_path} -exportPackage {assets} UnityVolumeRendering.unitypackage -quit".format(unity_path=unity_path, project_path=export_project_path, assets="Assets")
command_string = "\"{unity_path}\" -projectPath {project_path} -exportPackage Assets UnityVolumeRendering.unitypackage -batchmode -nographics -silent-crashes -quit".format(unity_path=unity_path, project_path=export_project_path)
print(command_string)
os.system(command_string)
shutil.copy(os.path.join(export_project_path, "UnityVolumeRendering.unitypackage"), "UnityVolumeRendering.unitypackage")
shutil.rmtree(export_project_path)