Skip to content

Commit 717be37

Browse files
committed
Flatten installed directory structure
1 parent e03d741 commit 717be37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/archive/package.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ set -euxo pipefail
44
TARGET="$1"
55
STAGING="$2"
66

7+
rm -rf "$STAGING"
78
mkdir -p "$STAGING"
89

910
bin_ext=""
1011
[[ "$TARGET" == *-windows-* ]] && bin_ext=".exe"
1112

1213
mkdir -p \
1314
"$STAGING/bin/" \
14-
"$STAGING/share/doc/scarb/"
15+
"$STAGING/doc/"
1516

1617
for crate in $(pkg/list-binaries.sh); do
1718
cp "target/$TARGET/release/${crate}${bin_ext}" "$STAGING/bin/"
1819
done
1920

20-
cp -r README.md LICENSE "$STAGING/share/doc/scarb/"
21+
cp -r README.md LICENSE "$STAGING/doc/"
2122

2223
if [[ "$TARGET" == *-windows-* ]]; then
2324
7z a "${STAGING}.zip" "$STAGING"

0 commit comments

Comments
 (0)