Skip to content

Commit 78a83af

Browse files
committed
Fix path for publish script (I hate case-sensitive stuff)
1 parent 02e1970 commit 78a83af

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

publish.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ fi
88

99
framework="net9.0"
1010

11-
if [[ -d "./bin/release/$framework" ]]; then
12-
rm -rf "./bin/release/$framework"
11+
if [[ -d "./bin/Release/$framework" ]]; then
12+
rm -rf "./bin/Release/$framework"
1313
fi
1414

1515
function selfcontainedzip {
1616
if [[ $# -lt 1 ]]; then
1717
return
1818
fi
19-
for folder in $(find "./bin/release/$1/sc" -mindepth 1 -type d); do
19+
for folder in $(find "./bin/Release/$1/sc" -mindepth 1 -type d); do
2020
if [[ ! -d "$folder" ]]; then
2121
continue
2222
fi
@@ -45,7 +45,7 @@ function regularzip {
4545
if [[ $# -lt 1 ]]; then
4646
return
4747
fi
48-
for folder in $(find "./bin/release/$1" -mindepth 1 -type d); do
48+
for folder in $(find "./bin/Release/$1" -mindepth 1 -type d); do
4949
if [[ ! -d "$folder" ]]; then
5050
continue
5151
fi
@@ -137,11 +137,11 @@ for architecture in win-x86 win-x64 win-arm64 osx-x64 osx-arm64 linux-x64 linux-
137137
echo -e "\nAfter a .NET version either stops supporting Intel systems or macOS Tahoe, both this flag and the $architecture target will be removed from this script."
138138
continue
139139
fi
140-
dotnet publish -r:$architecture --sc -o "bin/release/$framework/sc/$architecture" --framework $framework
140+
dotnet publish -r:$architecture --sc -o "bin/Release/$framework/sc/$architecture" --framework $framework
141141
done
142142

143143
selfcontainedzip $framework
144-
rm -rf "bin/release/$framework/sc" 2>/dev/null
144+
rm -rf "bin/Release/$framework/sc" 2>/dev/null
145145

146146
echo "Publishing regular binaries..."
147147

@@ -155,7 +155,7 @@ for architecture in win-x86 win-x64 win-arm64 osx-x64 osx-arm64 linux-x64 linux-
155155
continue
156156
fi
157157
dotnet publish -r:$architecture --framework $framework
158-
rm -rf "bin/release/$framework/$architecture/publish"
158+
rm -rf "bin/Release/$framework/$architecture/publish"
159159
done
160160

161-
regularzip $framework
161+
regularzip $framework

0 commit comments

Comments
 (0)