-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·50 lines (41 loc) · 1.34 KB
/
release.sh
File metadata and controls
executable file
·50 lines (41 loc) · 1.34 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env bash
#
# Copyright (c) AboutCode, nexB Inc. and others. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text.
# See https://github.com/aboutcode-org/nuget-inpector for support or download.
# See https://aboutcode.org for more information about AboutCode OSS projects.
#
# TODO: add --framework
# TODO: add --version-suffix based on git
# TODO: add --arch
# TODO: add --os
# -p:PublishSingleFile=true \
rm -rf release/
mkdir release
VERSION=0.10.0
TARGET_BASE=nuget-inspector-$(git describe)
# see https://learn.microsoft.com/en-us/dotnet/core/rid-catalog
for platform in "linux-x64" "win-x64" "osx-x64" "linux-arm64" "osx-arm64"
do
TARGET=$TARGET_BASE-$platform
RELEASE_DIR=release/nuget-inspector
rm -rf $RELEASE_DIR
mkdir -p $RELEASE_DIR
dotnet publish \
--runtime $platform \
--self-contained true \
--configuration Release \
-p:Version=$VERSION \
--output $RELEASE_DIR \
src/nuget-inspector/nuget-inspector.csproj ;
cp apache-2.0.LICENSE \
mit.LICENSE \
AUTHORS.rst \
CHANGELOG.rst \
NOTICE \
README.rst \
$RELEASE_DIR
rm release/nuget-inspector/createdump
tar -czf release/$TARGET.tar.gz -C release/ nuget-inspector
done