-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* prepare multitarget seupt * remove forgottent line * revert argument parser * adjust readme * fix SkipLast function * adjust * from link + typo fix Co-authored-by: Martin Ševčík <[email protected]>
- Loading branch information
Showing
8 changed files
with
85 additions
and
41 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
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 |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# Publish self-contained apps for Windows, Linux, and macOS | ||
|
||
$runtimes = "win-x64", "linux-x64", "osx-x64" | ||
$targets = "net5.0", "net6.0" | ||
|
||
Foreach($r in $runtimes) | ||
{ | ||
dotnet publish .\src\Kentico.Kontent.ModelGenerator\ -c Release --runtime $r -o (".\artifacts\" + $r) -p:PublishSingleFile=true -p:PublishTrimmed=true | ||
Compress-Archive (".\artifacts\" + $r + "\*") (".\artifacts\KontentModelGenerator-" + $r + ".zip") | ||
Foreach($t in $targets) | ||
{ | ||
dotnet publish .\src\Kentico.Kontent.ModelGenerator\ -c Release --runtime $r --framework $t --self-contained -o (".\artifacts\" + $r + "\" + $t) -p:PublishSingleFile=true -p:PublishTrimmed=true | ||
Compress-Archive (".\artifacts\" + $r + "\" + $t + "\*") (".\artifacts\KontentModelGenerator-" + $r + "-" + $t + ".zip") | ||
Remove-Item (".\artifacts\" + $r + "\" + $t) -Recurse | ||
} | ||
Remove-Item (".\artifacts\" + $r) -Recurse | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/Kentico.Kontent.ModelGenerator.Core/Kentico.Kontent.ModelGenerator.Core.csproj
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
2 changes: 1 addition & 1 deletion
2
src/Kentico.Kontent.ModelGenerator/Kentico.Kontent.ModelGenerator.csproj
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
Oops, something went wrong.