Skip to content

Commit

Permalink
Added framework dependent profile for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoderCZ committed Oct 28, 2024
1 parent befdb9e commit b699b3b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions FanScript.Cli/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ foreach ($profile in $profiles) {
if ($profile -eq 'framework-dependent') {
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' /p:PublishSingleFile=false
}
elseif ($profile -like 'framework-dependent-*') {
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' -r $profile.Substring('framework-dependent-'.Length) /p:PublishSingleFile=false
}
else {
dotnet publish -o "$publishDir/$profile/" --sc -c 'Release' -r $profile
}
Expand Down
3 changes: 3 additions & 0 deletions FanScript.LangServer/publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ foreach ($profile in $profiles) {
if ($profile -eq 'framework-dependent') {
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' /p:PublishSingleFile=false
}
elseif ($profile -like 'framework-dependent-*') {
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' -r $profile.Substring('framework-dependent-'.Length) /p:PublishSingleFile=false
}
else {
dotnet publish -o "$publishDir/$profile/" --sc -c 'Release' -r $profile
}
Expand Down
2 changes: 1 addition & 1 deletion publish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Param (
[string]$version
)

$profiles = 'win-x64', 'win-arm64', 'linux-x64', 'linux-arm64', 'framework-dependent'
$profiles = 'win-x64', 'win-arm64', 'linux-x64', 'linux-arm64', 'framework-dependent-win-x64', 'framework-dependent-linux-x64'

Function Publish-Proj
{
Expand Down

0 comments on commit b699b3b

Please sign in to comment.