-
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: add icon, create-xdc.sh, manifest.toml
- Loading branch information
Showing
3 changed files
with
29 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/sh | ||
|
||
case "$1" in | ||
"-h" | "--help") | ||
echo "usage: ${0##*/} [PACKAGE_NAME]" | ||
exit | ||
;; | ||
"") | ||
PACKAGE_NAME=${PWD##*/} # '##*/' removes everything before the last slash and the last slash | ||
;; | ||
*) | ||
PACKAGE_NAME=${1%.xdc} # '%.xdc' removes the extension and allows PACKAGE_NAME to be given with or without extension | ||
;; | ||
esac | ||
|
||
rm "$PACKAGE_NAME.xdc" 2> /dev/null | ||
zip -9 --recurse-paths "$PACKAGE_NAME.xdc" --exclude LICENSE README.md webxdc.js webxdc.d.ts "./*.sh" "./*.xdc" -- * | ||
|
||
echo "success, archive contents:" | ||
unzip -l "$PACKAGE_NAME.xdc" | ||
|
||
# check package size | ||
MAXSIZE=655360 | ||
size=$(wc -c < "$PACKAGE_NAME.xdc") | ||
if [ "$size" -ge $MAXSIZE ]; then | ||
echo "WARNING: package size exceeded the limit ($size > $MAXSIZE)" | ||
fi |
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,2 @@ | ||
name = "Video Call (no cap)" | ||
source_code_url = "https://github.com/WofWca/video-call-over-email" |