Various build and developer fixes, some optimizations (#2975)
* Various build and developer fixes, some optimizations * Fix the linux build * Fix afterpack * Fix notarization variables * Revert macos-notification-state changes from this PR * Only build the tar for PRs * Also ci * Fix copy script * Fix copy script more * Remove @babel/cli * Fix windows build * Fix MAS build
This commit is contained in:
@@ -80,19 +80,39 @@ fi
|
||||
if [[ -f "${SRC}"/mattermost-desktop-${VERSION}-linux-x64.tar.gz ]]; then
|
||||
echo -e "Copying linux\n"
|
||||
cp "${SRC}"/mattermost-desktop-*-linux-x64* "${DEST}/"
|
||||
cp "${SRC}"/mattermost-desktop-*-linux-x86_64* "${DEST}/"
|
||||
cp "${SRC}"/mattermost-desktop_"${VERSION}"-1_amd64*.deb "${DEST}/"
|
||||
SOMETHING_COPIED=$((SOMETHING_COPIED + 10))
|
||||
fi
|
||||
|
||||
if [[ -f "${SRC}"/mattermost-desktop-${VERSION}-linux-arm64.tar.gz ]]; then
|
||||
echo -e "Copying linux\n"
|
||||
cp "${SRC}"/mattermost-desktop-*-linux-arm64* "${DEST}/"
|
||||
cp "${SRC}"/mattermost-desktop-*-linux-aarch64* "${DEST}/"
|
||||
cp "${SRC}"/mattermost-desktop_"${VERSION}"-1_arm64*.deb "${DEST}/"
|
||||
SOMETHING_COPIED=$((SOMETHING_COPIED + 11))
|
||||
fi
|
||||
|
||||
if [[ -f "${SRC}"/mattermost-desktop-*-linux-x86_64* ]]; then
|
||||
echo -e "Copying linux-rpm\n"
|
||||
cp "${SRC}"/mattermost-desktop-*-linux-x86_64* "${DEST}/"
|
||||
SOMETHING_COPIED=$((SOMETHING_COPIED + 12))
|
||||
fi
|
||||
|
||||
if [[ -f "${SRC}"/mattermost-desktop-*-linux-aarch64* ]]; then
|
||||
echo -e "Copying linux-rpm\n"
|
||||
cp "${SRC}"/mattermost-desktop-*-linux-aarch64* "${DEST}/"
|
||||
SOMETHING_COPIED=$((SOMETHING_COPIED + 13))
|
||||
fi
|
||||
|
||||
if [[ -f "${SRC}"/mattermost-desktop_${VERSION}-1_amd64*.deb ]]; then
|
||||
echo -e "Copying linux-deb\n"
|
||||
cp "${SRC}"/mattermost-desktop_"${VERSION}"-1_amd64*.deb "${DEST}/"
|
||||
SOMETHING_COPIED=$((SOMETHING_COPIED + 14))
|
||||
fi
|
||||
|
||||
if [[ -f "${SRC}"/mattermost-desktop_${VERSION}-1_arm64*.deb ]]; then
|
||||
echo -e "Copying linux-deb\n"
|
||||
cp "${SRC}"/mattermost-desktop_"${VERSION}"-1_arm64*.deb "${DEST}/"
|
||||
SOMETHING_COPIED=$((SOMETHING_COPIED + 15))
|
||||
fi
|
||||
|
||||
if [[ $SOMETHING_COPIED -eq 0 ]]; then
|
||||
echo "Didn't find anything to copy, it seems like something failed"
|
||||
# Bash only returns 0-255 values
|
||||
|
Reference in New Issue
Block a user