Build additional pk3 files automatically; Rename menu pak to assets pak

This commit is contained in:
Petr Bartos 2023-03-20 21:04:30 +01:00
parent 6ee330d78f
commit 89cc849147
10 changed files with 16 additions and 7 deletions

7
.gitignore vendored
View file

@ -26,7 +26,7 @@ $RECYCLE.BIN/
*.apk
*.ap_
*.class
projects/Android/build/*
Projects/Android/build/*
assets/oculussig*
Projects/Android/.cxx/*
*.json
@ -36,10 +36,9 @@ Projects/Android/.gradle/*
Projects/Android/.idea/*
Projects/Android/.externalNativeBuild/*
drbeef-release-key.keystore
assets/pak6.pak
Projects/Android/Android.iml
Projects/Projects.iml
assets/pak0.pk3
assets/sp_pak_weapons.pk3
assets/z_zvr_weapons.pk3
assets/sp_vpak8.pk3
assets/z_zvr_weapons.pk3
assets/z_vr_assets.pk3

View file

@ -57,4 +57,14 @@ buildscript {
repositories {
google()
}
}
}
task packResources(type: Zip) {
from "./z_vr_assets/"
destinationDir file("../../assets/")
archiveName "z_vr_assets.pk3"
}
tasks.matching {it.name.startsWith("assemble")}.all { Task task ->
task.dependsOn(packResources)
}

Binary file not shown.

View file

@ -261,8 +261,8 @@ import static android.system.Os.setenv;
//and the vr weapons
copy_asset("/sdcard/RTCWQuest/Main", "z_zvr_weapons.pk3", true);
//and the vr menu pk3
copy_asset("/sdcard/RTCWQuest/Main", "z_rtcwquest_vrmenu.pk3", true);
//and some additional vr assets
copy_asset("/sdcard/RTCWQuest/Main", "z_vr_assets.pk3", true);
//and the venom scripting improvements pak (thank-you _HELLBARON_ !!)
copy_asset("/sdcard/RTCWQuest/Main", "sp_vpak8.pk3", false);