Create separate scripts for building client, extension and cli
This commit is contained in:
Родитель
3164610e52
Коммит
af1f1a3f07
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script builds the cli as a selfconatined executable and copies the output to the extensions corets-cli folders for mac, linux and windows
|
||||
|
||||
if [ ! -z "$1" ] && ([ "$1" == "release" ] || [ "$1" == "debug" ]); then # Check if release was passed as parameter, else ignore it
|
||||
configuration=$1
|
||||
|
||||
echo "Building and publishing cli in configuration $configuration"
|
||||
echo
|
||||
|
||||
dotnet publish ../src/CoreTemplateStudio/code/src/CoreTemplateStudio/CoreTemplateStudio.Cli/CoreTemplateStudio.Cli.csproj -c $configuration -r win-x64 --self-contained true -p:PublishSingleFile=true -o ../src/extension/src/corets-cli/win32/
|
||||
dotnet publish ../src/CoreTemplateStudio/code/src/CoreTemplateStudio/CoreTemplateStudio.Cli/CoreTemplateStudio.Cli.csproj -c $configuration -r linux-x64 --self-contained true -p:PublishSingleFile=true -o ../src/extension/src/corets-cli/linux/
|
||||
dotnet publish ../src/CoreTemplateStudio/code/src/CoreTemplateStudio/CoreTemplateStudio.Cli/CoreTemplateStudio.Cli.csproj -c $configuration -r osx-x64 --self-contained true -p:PublishSingleFile=true -o ../src/extension/src/corets-cli/darwin/
|
||||
|
||||
echo "Finished building the cli"
|
||||
|
||||
read
|
||||
else
|
||||
echo "Invalid parmeter $1, expected values: 'debug' or ' release' for build configuration."
|
||||
read
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script installs and builds the client and copies the output to the extensions react folder
|
||||
|
||||
echo "Installing client dependencies"
|
||||
echo
|
||||
yarn --cwd ../src/client install
|
||||
echo
|
||||
|
||||
echo "Building client"
|
||||
echo
|
||||
yarn --cwd ../src/client build
|
||||
|
||||
echo "Finished building the client"
|
||||
|
||||
read
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This script installs and builds the extension
|
||||
|
||||
echo "Installing extension dependencies"
|
||||
echo
|
||||
yarn --cwd ../src/extension install
|
||||
echo
|
||||
|
||||
echo "Building extension"
|
||||
echo
|
||||
yarn --cwd ../src/extension build
|
||||
|
||||
echo "Finished building extension"
|
||||
|
||||
read
|
|
@ -0,0 +1,7 @@
|
|||
./build-release || bash build-release
|
||||
yarn --cwd ../src/extension createVsixPackage
|
||||
RED='\033[0;31m'
|
||||
CYAN='\033[0;36m'
|
||||
GREEN='\033[0;32m'
|
||||
NC='\033[0m'
|
||||
echo -e "\n${GREEN}wts.vsix${NC} is now built in ${RED}root/dist/${NC} and is ready for distribution.\n"
|
Загрузка…
Ссылка в новой задаче