Fix build script.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
CismonX 2021-05-05 04:44:30 +08:00
parent db7490ffe6
commit 0651e8187d
Signed by: cismonx
GPG Key ID: 3094873E29A482FB
4 changed files with 9 additions and 4 deletions

View File

@ -8,6 +8,10 @@ this notice are preserved. This file is offered as-is, without any warranty.
# Changelog # Changelog
## v0.2.1 - 05/05/2021
* Fix an error in build script which produces corrupted metadata in `.vsix` package.
## v0.2.0 - 05/05/2021 ## v0.2.0 - 05/05/2021
* Add version indicator (as status bar item). * Add version indicator (as status bar item).

2
package-lock.json generated
View File

@ -6,7 +6,7 @@
"This file is offered as-is, without any warranty." "This file is offered as-is, without any warranty."
], ],
"name": "texinfo", "name": "texinfo",
"version": "0.2.0", "version": "0.2.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -9,7 +9,7 @@
"displayName": "Texinfo Language Support", "displayName": "Texinfo Language Support",
"description": "Texinfo language support for Visual Studio Code", "description": "Texinfo language support for Visual Studio Code",
"publisher": "cismonx", "publisher": "cismonx",
"version": "0.2.0", "version": "0.2.1",
"author": { "author": {
"name": "CismonX", "name": "CismonX",
"email": "admin@cismon.net", "email": "admin@cismon.net",

View File

@ -14,8 +14,9 @@ vsce package --baseContentUrl=$(json -f package.json repository.url)/tree
unzip -d $VSIX_FILE_NAME{.d,} unzip -d $VSIX_FILE_NAME{.d,}
cd $VSIX_FILE_NAME.d cd $VSIX_FILE_NAME.d
minify-xml --output \[Content_Types\].xml{,} MINIFY_XML_OPTIONS='--no-shorten-namespaces --no-remove-unused-namespaces --no-remove-unused-default-namespace'
minify-xml --output extension.vsixmanifest{,} minify-xml $MINIFY_XML_OPTIONS --output \[Content_Types\].xml{,}
minify-xml $MINIFY_XML_OPTIONS --output extension.vsixmanifest{,}
cd extension cd extension
# Minify JSON files. # Minify JSON files.
json -j0 -I -e "$PACKAGE_JSON_CLEANUP_JS" -f package.json json -j0 -I -e "$PACKAGE_JSON_CLEANUP_JS" -f package.json