-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.sh
executable file
·30 lines (21 loc) · 1.28 KB
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#! /bin/bash
set -e
mkdir -p build/packages
rm --force build/packages/*
pushd build/ > /dev/null
echo "Create Linux (amd64) Package"
tar --create --gzip --overwrite --file=packages/uipathcli-linux-amd64.tar.gz --transform='flags=r;s|uipath-linux-amd64|uipath|' uipath-linux-amd64
echo "Create Windows (amd64) Package"
zip -q packages/uipathcli-windows-amd64.zip uipath-windows-amd64.exe
printf "@ uipath-windows-amd64.exe\n@=uipath.exe\n" | zipnote -w packages/uipathcli-windows-amd64.zip
echo "Create MacOS (amd64) Package"
tar --create --gzip --overwrite --file=packages/uipathcli-darwin-amd64.tar.gz --transform='flags=r;s|uipath-darwin-amd64|uipath|' uipath-darwin-amd64
echo "Create Linux (arm64) Package"
tar --create --gzip --overwrite --file=packages/uipathcli-linux-arm64.tar.gz --transform='flags=r;s|uipath-linux-arm64|uipath|' uipath-linux-arm64
echo "Create Windows (arm64) Package"
zip -q packages/uipathcli-windows-arm64.zip uipath-windows-arm64.exe
printf "@ uipath-windows-arm64.exe\n@=uipath.exe\n" | zipnote -w packages/uipathcli-windows-arm64.zip
echo "Create MacOS (arm64) Package"
tar --create --gzip --overwrite --file=packages/uipathcli-darwin-arm64.tar.gz --transform='flags=r;s|uipath-darwin-arm64|uipath|' uipath-darwin-arm64
popd > /dev/null
echo "Successfully created packages"