Fix the delivery scripts

It adds in the other resources, but ignores the ones handed out
This commit is contained in:
2021-10-14 16:24:19 +02:00
parent 36a283f004
commit 9aea87f7e9
3 changed files with 46 additions and 3 deletions

View File

@@ -14,4 +14,24 @@ Make sure it works before using it to write your report.
## Code delivery
To make a code archive (`source.zip`) for uploading to blackboard: run either `create_code_archive_for_blackboard_LINUX.sh` or `create_code_archive_for_blackboard_WINDOWS.bat`.
We want the following files and folders to be delivered in a ZIP file:
* `resources`
* `shaders`
* `src`
* `Cargo.lock`
* `Cargo.toml`
**Important:** Do not include the `target` folder!
To automatically make an archive (`source.zip`) ready for uploading to blackboard:
* Make sure any extra assets or resources you have might have added are located in the `resources` folder
* Then run either:
* `create_code_archive_for_blackboard_LINUX.sh`
* `create_code_archive_for_blackboard_WINDOWS.bat`.
This script will explicitly ignore the `target` folder, and two files given as a handout for assignment 3, to save space:
* `resources/helicopter.obj`
* `resources/lunarsurface.obj`

View File

@@ -1,2 +1,13 @@
#!/bin/sh
zip -r source.zip src shaders Cargo.lock Cargo.toml
if test -f source.zip; then
rm -v source.zip
fi
zip -r source.zip \
Cargo.lock \
Cargo.toml \
src \
shaders \
resources/* \
-x"resources/helicopter.obj" \
-x"resources/lunarsurface.obj" \
-x"resources/.gitkeep"

View File

@@ -1,2 +1,14 @@
vendor\7za.exe a source.zip src shaders Cargo.lock Cargo.toml
if exist source.zip (
del source.zip
)
vendor/7za.exe -tzip a source.zip ^
Cargo.lock ^
Cargo.toml ^
src ^
shaders ^
resources/* ^
-x!resources/helicopter.obj ^
-x!resources/lunarsurface.obj ^
-x!resources/.gitkeep
pause