forked from berinhard/pyp5js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(berinhard#222): checks if required assets were built in pull req…
…uests
- Loading branch information
1 parent
87ebb8e
commit 301652e
Showing
3 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
################################################################################ | ||
# Checks if required assets for pyp5js to work are present # | ||
# # | ||
# Created on 31/03/2023 # | ||
################################################################################ | ||
|
||
script_path="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
required_assets=$(cat "$script_path/required_assets.txt") | ||
semver_regex='([0-9]+)\.([0-9]+)\.([0-9]+)(-([0-9A-Za-z-]+(\.[0-9A-Za-z-]+)*))?(\+[0-9A-Za-z-]+)?' | ||
|
||
for asset in $required_assets; do | ||
sanitized_asset=$(echo "$asset" | sed -r "s/$semver_regex/*/g") | ||
if ! compgen -G "$sanitized_asset" > /dev/null; then | ||
echo "ERROR: Required $sanitized_asset is missing in the build" | ||
exit 1 | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
pyp5js/http_local/__init__.py | ||
pyp5js/http_local/web_app.py | ||
pyp5js/http_local/static/p5_reference.yml | ||
pyp5js/http_local/static/js/ace/ace.js | ||
pyp5js/http_local/static/js/p5/p5.js | ||
pyp5js/http_local/static/js/p5/p5.min.js | ||
pyp5js/http_local/static/js/p5/addons/p5.sound.js | ||
pyp5js/http_local/static/js/p5/addons/p5.sound.min.js | ||
pyp5js/http_local/static/js/pyodide/packages.json | ||
pyp5js/http_local/static/js/pyodide/pyodide.asm.data | ||
pyp5js/http_local/static/js/pyodide/pyodide.asm.js | ||
pyp5js/http_local/static/js/pyodide/pyodide.asm.wasm | ||
pyp5js/http_local/static/js/pyodide/pyodide.js.map | ||
pyp5js/http_local/static/js/pyodide/pyodide_v0.18.1.js | ||
pyp5js/http_local/static/styles/basscss-7.1.1.min.css | ||
pyp5js/http_local/static/styles/custom.css | ||
pyp5js/http_local/templates/base.html | ||
pyp5js/http_local/templates/index.html | ||
pyp5js/http_local/templates/new_sketch_form.html | ||
pyp5js/http_local/templates/new_sketch_success.html | ||
pyp5js/http_local/templates/view_sketch.html | ||
pyp5js/templates/pyodide/base_sketch.py.template | ||
pyp5js/templates/pyodide/index.html | ||
pyp5js/templates/pyodide/target_sketch.js.template | ||
pyp5js/templates/transcrypt/base_sketch.py.template | ||
pyp5js/templates/transcrypt/index.html | ||
pyp5js/templates/transcrypt/pyp5js.py | ||
pyp5js/templates/transcrypt/python_functions.py | ||
pyp5js/templates/transcrypt/target_sketch.py.template |