2022-08-03 00:54:40 +03:00
|
|
|
#!/bin/bash
|
2023-06-07 16:32:36 +03:00
|
|
|
|
2024-03-01 14:29:01 +03:00
|
|
|
# Copyright 2019-2024 Tauri Programme within The Commons Conservancy
|
2023-06-07 16:32:36 +03:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
2022-08-03 00:54:40 +03:00
|
|
|
set -euxo pipefail
|
|
|
|
|
|
|
|
for o in outputs/*; do
|
|
|
|
pushd "$o"
|
|
|
|
|
|
|
|
chmod +x cargo-tauri*
|
2024-08-28 00:42:30 +03:00
|
|
|
cp ../../crates/tauri-cli/LICENSE* ../../crates/tauri-cli/README.md .
|
2022-08-03 00:54:40 +03:00
|
|
|
|
|
|
|
target=$(basename "$o" | cut -d. -f1)
|
|
|
|
if grep -qE '(apple|windows)' <<< "$target"; then
|
|
|
|
zip "../${target}.zip" *
|
|
|
|
else
|
|
|
|
tar cv * | gzip -9 > "../${target}.tgz"
|
|
|
|
fi
|
|
|
|
|
|
|
|
popd
|
|
|
|
done
|