mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
27 lines
295 B
Bash
Executable File
27 lines
295 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
run=false
|
|
|
|
TEMP=$(getopt --long -o "g" "$@")
|
|
eval set -- "$TEMP"
|
|
while true; do
|
|
case "$1" in
|
|
-g)
|
|
run=true
|
|
shift 2
|
|
;;
|
|
*)
|
|
break
|
|
;;
|
|
esac
|
|
done
|
|
|
|
cargo install cargo-apk
|
|
|
|
if [ "$run" = true ] ; then
|
|
cargo apk run --lib
|
|
else
|
|
cargo apk build --lib
|
|
fi
|