-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
185 changed files
with
7,751 additions
and
1,304 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
echo Copy Main folder | ||
cp -r "ManualDi.Main/ManualDi.Main/." "UnityPackageRelease/ManualDi.Main/" | ||
|
||
echo Delete unnecesary files from common | ||
rm "UnityPackageRelease/ManualDi.Main/ManualDi.Main.csproj" | ||
rm -rf "UnityPackageRelease/ManualDi.Main/bin" | ||
rm -rf "UnityPackageRelease/ManualDi.Main/obj" | ||
rm -rf "UnityPackageRelease/ManualDi.Main/Properties" | ||
|
||
echo Build generator | ||
dotnet build ManualDi.Main --configuration Release | ||
|
||
echo Copy generator dll to package | ||
cp "ManualDi.Main/ManualDi.Main.Generators/bin/Release/netstandard2.0/ManualDi.Main.Generators.dll" "UnityPackageRelease/ManualDi.Main.Generators.dll" | ||
cp "GenerateUnityPackage/ManualDi.Main.Generators.dll.meta" "UnityPackageRelease/ManualDi.Main.Generators.dll.meta" |
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,6 +1,57 @@ | ||
#!/bin/bash | ||
|
||
sh ./GenerateUnityPackage/GenerateUnityPackageReleaseFolder.sh | ||
# Default values for the flags | ||
skip_unity3d=false | ||
|
||
# Parse command-line arguments | ||
while [[ "$#" -gt 0 ]]; do | ||
case $1 in | ||
--skip-unity3d) | ||
skip_unity3d=true | ||
;; | ||
*) | ||
echo "Unknown option: $1" | ||
exit 1 | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
# Path to the .csproj file and package.json | ||
CSPROJ_FILE="ManualDi.Main/ManualDi.Main/ManualDi.Main.csproj" | ||
|
||
# Extract version from the .csproj file | ||
version=$(grep -oP '(?<=<Version>)[^<]+' "$CSPROJ_FILE") | ||
|
||
# Check if we extracted a version | ||
if [ -z "$version" ]; then | ||
echo "Version not found in $CSPROJ_FILE" | ||
exit 1 | ||
fi | ||
|
||
echo "Remove previous package" | ||
rm -rf UnityPackageRelease | ||
mkdir -p "UnityPackageRelease/" | ||
|
||
echo Copy License | ||
cp "LICENSE.md" "UnityPackageRelease/LICENSE.md" | ||
|
||
cp "GenerateUnityPackage\package.json" "UnityPackageRelease\package.json" | ||
echo "Copy package files to the package root" | ||
sed -i "s/\"version\": \"\$version\"/\"version\": \"$version\"/g" "UnityPackageRelease/package.json" | ||
echo "Version in package.json updated to $version" | ||
|
||
echo Copy assambly definition | ||
cp "GenerateUnityPackage/ManualDi.asmdef" "UnityPackageRelease/ManualDi.asmdef" | ||
cp "GenerateUnityPackage/ManualDi.asmdef.meta" "UnityPackageRelease/ManualDi.asmdef.meta" | ||
cp "GenerateUnityPackage/csc.rsp" "UnityPackageRelease/csc.rsp" | ||
|
||
sh ./GenerateUnityPackage/GenerateMainPackage.sh | ||
if $skip_unity3d; then | ||
echo "Skipping unity3d package" | ||
else | ||
sh ./GenerateUnityPackage/GenerateUnity3dPackage.sh | ||
fi | ||
sh ./GenerateUnityPackage/GenerateUnity3dMetas.sh | ||
cd UnityPackageRelease | ||
npm pack |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
cp -r "ManualDi.Unity3d/Assets/ManualDi.Unity3d/." "UnityPackageRelease/ManualDi.Unity3d/" | ||
mv "UnityPackageRelease/ManualDi.Unity3d/Samples" "UnityPackageRelease/ManualDi.Unity3d/Samples~" | ||
rm "UnityPackageRelease/ManualDi.Unity3d/Samples.meta" |
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
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,11 +1,22 @@ | ||
{ | ||
"name": "me.pereviader.manualdi.main", | ||
"name": "com.pereviader.manualdi.unity3d", | ||
"version": "$version", | ||
"displayName": "ManualDi.Main", | ||
"description": "A C# dependency injection library without reflection", | ||
"unity": "2022.3.33", | ||
"displayName": "ManualDi", | ||
"description": "Fast C# dependency injection library that uses no reflexion", | ||
"unity": "2022.3", | ||
"license": "MIT", | ||
"documentationUrl": "https://github.com/PereViader/ManualDi.Main", | ||
"dependencies": { | ||
} | ||
} | ||
"changelogUrl": "https://github.com/PereViader/ManualDi.Main/commits/main/", | ||
"licensesUrl": "https://opensource.org/license/mit", | ||
"author": { | ||
"name": "Pere Viader", | ||
"url": "https://github.com/PereViader" | ||
}, | ||
"samples": [ | ||
{ | ||
"displayName": "Samples", | ||
"description": "Samples for ManualDi", | ||
"path": "ManualDi.Unity3d/Samples~" | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
ManualDi.Main.Tests/TestDiContainerNonGenericResolveAll.cs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.