Skip to content

Commit 913ed42

Browse files
Merge pull request #3 from BastianBlokland/feature/generator-3.3
Update to EnumGenerator.Core 3.3.1203
2 parents 1b552b2 + abf6a0c commit 913ed42

21 files changed

+199
-26
lines changed

.ci/update-dependencies.sh

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,27 @@ saveDll ()
3737
processPackage ()
3838
{
3939
local packageName="$(basename $1)"
40+
local supportedFrameworks=(netstandard2.0 netstandard1.3)
4041
info "Processing package: $packageName"
4142

42-
local netstandard2Dir="$1/lib/netstandard2.0/"
43-
if [ ! -d "$netstandard2Dir" ]
44-
then
45-
fail "No 'netstandard2.0' library found for package: $packageName"
46-
fi
47-
48-
echo "$packageName" >> "$LIBRARY_DIR/manifest.txt"
49-
for dllPath in "$netstandard2Dir"*.dll
43+
for framework in "${supportedFrameworks[@]}"
5044
do
51-
saveDll "$dllPath" "$packageName"
45+
local frameworkDir="$1/lib/$framework/"
46+
if [ -d "$frameworkDir" ]
47+
then
48+
echo "$packageName" >> "$LIBRARY_DIR/manifest.txt"
49+
for dllPath in "$frameworkDir"*.dll
50+
do
51+
saveDll "$dllPath" "$packageName"
52+
done
53+
return 0;
54+
fi
5255
done
56+
57+
fail "No supported framework found for package: $packageName"
5358
}
5459

55-
# Extract all netstandard2.0 dll's from the packages.
60+
# Extract the needed dll's from the packages.
5661
for packageDir in "$NUGET_DIR"/*
5762
do
5863
processPackage $packageDir

.ci/utils.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,16 @@ warn()
2929
fi
3030
}
3131

32-
fail ()
32+
fail()
3333
{
34-
echo $1 >&2
34+
if [ -z "$NO_COLORS" ]
35+
then
36+
RED='\033[0;31m'
37+
NORMAL='\033[0m'
38+
echo -e "${RED}ERROR: ${1}${NORMAL}" >&2
39+
else
40+
echo -e "ERROR: $1" >&2
41+
fi
3542
exit 1
3643
}
3744

.example/.ionide/symbolCache.db

8 KB
Binary file not shown.
3 KB
Binary file not shown.
38.5 KB
Binary file not shown.

.example/Assets/lib/Mono.Cecil.Mdb.dll.meta

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
85.5 KB
Binary file not shown.

.example/Assets/lib/Mono.Cecil.Pdb.dll.meta

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
24.5 KB
Binary file not shown.

.example/Assets/lib/Mono.Cecil.Rocks.dll.meta

Lines changed: 33 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)