Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
android_ndk_darwin/ | 22-Nov-2023 | - | 144 | 67 | ||
android_ndk_linux/ | 22-Nov-2023 | - | 144 | 67 | ||
android_ndk_windows/ | 22-Nov-2023 | - | 149 | 69 | ||
android_sdk/ | 22-Nov-2023 | - | 149 | 70 | ||
cast_toolchain/ | 22-Nov-2023 | - | 62 | 20 | ||
clang_linux/ | 22-Nov-2023 | - | 172 | 90 | ||
go/ | 22-Nov-2023 | - | 138 | 61 | ||
linux_vulkan_intel_driver_debug/ | 22-Nov-2023 | - | 148 | 71 | ||
linux_vulkan_intel_driver_release/ | 22-Nov-2023 | - | 184 | 92 | ||
linux_vulkan_sdk/ | 22-Nov-2023 | - | 158 | 76 | ||
scripts/ | 22-Nov-2023 | - | 133 | 56 | ||
skimage/ | 22-Nov-2023 | - | 143 | 62 | ||
skp/ | 22-Nov-2023 | - | 200 | 112 | ||
svg/ | 22-Nov-2023 | - | 163 | 79 | ||
win_toolchain/ | 22-Nov-2023 | - | 239 | 144 | ||
win_vulkan_sdk/ | 22-Nov-2023 | - | 165 | 85 | ||
README.md | D | 22-Nov-2023 | 1.4 KiB | 48 | 36 | |
__init__.py | D | 22-Nov-2023 | 157 | 7 | 0 | |
asset_utils.py | D | 22-Nov-2023 | 11 KiB | 338 | 269 | |
asset_utils_test.py | D | 22-Nov-2023 | 7 KiB | 242 | 140 | |
assets.py | D | 22-Nov-2023 | 2.5 KiB | 87 | 57 |
README.md
1Assets 2====== 3 4This directory contains tooling for managing assets used by the bots. The 5primary entry point is assets.py, which allows a user to add, remove, upload, 6and download assets. 7 8Assets are stored in Google Storage, named for their version number. 9 10 11Individual Assets 12----------------- 13 14Each asset has its own subdirectory with the following contents: 15* VERSION: The current version number of the asset. 16* download.py: Convenience script for downloading the current version of the asset. 17* upload.py: Convenience script for uploading a new version of the asset. 18* [optional] create.py: Script which creates the asset, implemented by the user. 19* [optional] create\_and\_upload.py: Convenience script which combines create.py with upload.py. 20 21 22Examples 23------- 24 25Add a new asset and upload an initial version. 26 27``` 28$ infra/bots/assets/assets.py add myasset 29Creating asset in infra/bots/assets/myasset 30Creating infra/bots/assets/myasset/download.py 31Creating infra/bots/assets/myasset/upload.py 32Creating infra/bots/assets/myasset/common.py 33Add script to automate creation of this asset? (y/n) n 34$ infra/bots/assets/myasset/upload.py -t ${MY_ASSET_LOCATION} 35$ git commit 36``` 37 38Add an asset whose creation can be automated. 39 40``` 41$ infra/bots/assets/assets.py add myasset 42Add script to automate creation of this asset? (y/n) y 43$ vi infra/bots/assets/myasset/create.py 44(implement the create_asset function) 45$ infra/bots/assets/myasset/create_and_upload.py 46$ git commit 47``` 48