-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# RelaxVersioner - Git tag/branch based, full-automatic version generator. | ||
# Copyright (c) Kouji Matsui (@kozy_kekyo, @kekyo@mastodon.cloud) | ||
# | ||
# Licensed under Apache-v2: https://opensource.org/licenses/Apache-2.0 | ||
|
||
# This script is used by the RelaxVersioner to get over when .NET releases a new major version. | ||
# For example .NET 8.0 release, the RelaxVersioner that uses itself will fail to build | ||
# because it must support the `net8.0` TFM, which was not included in earlier versions. | ||
# This script will generate a RelaxVersioner with a temporary version embedded | ||
# and a private package so that it can build itself with the new .NET version. | ||
|
||
# `PackageVersion` should be set appropriately. | ||
|
||
echo "" | ||
echo "===========================================================" | ||
echo "Build RelaxVersioner (Bootstrap)" | ||
echo "" | ||
|
||
# https://github.com/dotnet/msbuild/issues/1709 | ||
export MSBUILDDISABLENODEREUSE=1 | ||
|
||
dotnet build -p:Configuration=Release -p:Platform="Any CPU" -p:BOOTSTRAP=True -p:PackageVersion=3.2.10 -p:RestoreNoCache=True RelaxVersioner.sln | ||
dotnet pack -p:Configuration=Release -p:Platform="Any CPU" -p:BOOTSTRAP=True -p:PackageVersion=3.2.10 -o artifacts RelaxVersioner.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# RelaxVersioner - Git tag/branch based, full-automatic version generator. | ||
# Copyright (c) Kouji Matsui (@kozy_kekyo, @kekyo@mastodon.cloud) | ||
# | ||
# Licensed under Apache-v2: https://opensource.org/licenses/Apache-2.0 | ||
|
||
echo "" | ||
echo "===========================================================" | ||
echo "Build RelaxVersioner" | ||
echo "" | ||
|
||
# https://github.com/dotnet/msbuild/issues/1709 | ||
export MSBUILDDISABLENODEREUSE=1 | ||
|
||
dotnet build -p:Configuration=Release -p:Platform="Any CPU" -p:RestoreNoCache=True RelaxVersioner.sln | ||
dotnet pack -p:Configuration=Release -p:Platform="Any CPU" -o artifacts RelaxVersioner.sln |