Skip to content

Commit b699b3b

Browse files
committed
Added framework dependent profile for linux
1 parent befdb9e commit b699b3b

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

FanScript.Cli/publish.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ foreach ($profile in $profiles) {
1313
if ($profile -eq 'framework-dependent') {
1414
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' /p:PublishSingleFile=false
1515
}
16+
elseif ($profile -like 'framework-dependent-*') {
17+
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' -r $profile.Substring('framework-dependent-'.Length) /p:PublishSingleFile=false
18+
}
1619
else {
1720
dotnet publish -o "$publishDir/$profile/" --sc -c 'Release' -r $profile
1821
}

FanScript.LangServer/publish.ps1

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ foreach ($profile in $profiles) {
1313
if ($profile -eq 'framework-dependent') {
1414
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' /p:PublishSingleFile=false
1515
}
16+
elseif ($profile -like 'framework-dependent-*') {
17+
dotnet publish -o "$publishDir/$profile/" --no-self-contained -c 'Release' -r $profile.Substring('framework-dependent-'.Length) /p:PublishSingleFile=false
18+
}
1619
else {
1720
dotnet publish -o "$publishDir/$profile/" --sc -c 'Release' -r $profile
1821
}

publish.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Param (
33
[string]$version
44
)
55

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

88
Function Publish-Proj
99
{

0 commit comments

Comments
 (0)