21 строка
606 B
Bash
21 строка
606 B
Bash
#!/usr/bin/env bash
|
|
|
|
# Fixes a .vsix built on Windows to have the correct executable bit set for the scripts inside the vsix
|
|
# (not necessary if built on Mac/Linux)
|
|
|
|
rm -r fixed
|
|
rm -r vsix.tmp
|
|
rm azurerm-vscode-tools-0.6.1-alphalangserv.vsix.fixed
|
|
|
|
unzip azurerm-vscode-tools-0.6.1-alphalangserv.vsix -d vsix.tmp
|
|
chmod +x vsix.tmp/extension/assets/scripts/*.sh
|
|
|
|
pushd vsix.tmp
|
|
zip -r ../fixed.zip *
|
|
popd
|
|
unzip fixed.zip -d fixed
|
|
|
|
rm -r ./vsix.tmp
|
|
mv azurerm-vscode-tools-0.6.1-alphalangserv.vsix azurerm-vscode-tools-0.6.1-alphalangserv.vsix.orig
|
|
mv fixed.zip azurerm-vscode-tools-0.6.1-alphalangserv.vsix
|