
* Add msi installer via Wixtoolset * Add PowerShell Makefile * [MM-18135] merge lint and test step, use -quiet, clarify changing debugging port * [MM-18135] use no sandbox, separate linting, circle 2.1 * [MM-18137] Add MSI installer job * [MM-18137] Add windows signing * [MM-18152] Desktop notifications (#1040) * [MM-18345] use non-dangerous wix version * [MM-18348] add code signing to windows build (#1044) * [MM-18348] fix review comments * [MM-18851] runtime/sandbox hardening (#1042) * [MM-18906] remove GPU acceleration option from GPO settings (#1047) * Other minor refinements
52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
VERSION=$(cat package.json | jq -r '.version')
|
|
SRC="${1}"
|
|
DEST="${2}"
|
|
SOMETHING_COPIED=0
|
|
if [[ ! -d "${DEST}" ]]; then
|
|
echo "Can't find destination. Creating ${DEST}"
|
|
mkdir -p ${DEST}
|
|
fi
|
|
|
|
if [[ -f "${SRC}/mattermost-desktop-${VERSION}-win-ia32.zip" ]]; then
|
|
echo "Copying Win32\n"
|
|
cp "${SRC}/mattermost-desktop-${VERSION}-win-ia32.zip" "${DEST}/mattermost-desktop-${VERSION}-win32.zip"
|
|
SOMETHING_COPIED=1
|
|
fi
|
|
if [[ -f "${SRC}/mattermost-desktop-${VERSION}-win-x64.zip" ]]; then
|
|
echo "Copying Win64\n"
|
|
cp "${SRC}/mattermost-desktop-${VERSION}-win-x64.zip" "${DEST}/mattermost-desktop-${VERSION}-win64.zip"
|
|
SOMETHING_COPIED=$(($SOMETHING_COPIED + 2))
|
|
fi
|
|
if [[ -f "${SRC}/mattermost-desktop-setup-${VERSION}-win.exe" ]]; then
|
|
echo "Copying win-no-arch\n"
|
|
cp "${SRC}/mattermost-desktop-setup-${VERSION}-win.exe" "${DEST}/"
|
|
SOMETHING_COPIED=$(($SOMETHING_COPIED + 4))
|
|
fi
|
|
if [[ -f "${SRC}"/mattermost-desktop-${VERSION}-mac.zip ]]; then
|
|
echo "Copying mac\n"
|
|
cp "${SRC}"/mattermost-desktop-*-mac.* "${DEST}/"
|
|
if [[ -f "${SRC}"/mattermost-desktop-${VERSION}-mac.dmg ]]; then
|
|
cp "${SRC}"/*.blockmap "${DEST}/"
|
|
fi
|
|
SOMETHING_COPIED=$(($SOMETHING_COPIED + 8))
|
|
fi
|
|
if [[ -f "${SRC}"/mattermost-desktop-${VERSION}-linux-x64.tar.gz ]]; then
|
|
echo "Copying linux"
|
|
cp "${SRC}"/mattermost-desktop-*-linux-* "${DEST}/"
|
|
SOMETHING_COPIED=$(($SOMETHING_COPIED + 16))
|
|
fi
|
|
|
|
if [[ $SOMETHING_COPIED -eq 0 ]]; then
|
|
echo "didn't find anything to copy, seems like something failed"
|
|
exit -1
|
|
fi
|
|
|
|
cp "${SRC}"/*.yml "${DEST}/"
|
|
|
|
# exit $SOMETHING_COPIED
|
|
exit 0
|
|
|