Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
## [1.1.2](v1.1.1...v1.1.2) (2020-08-11)

### Bug Fixes

* Windows defender reporting OpenSesame compilers as a Trojan ([96b163b](96b163b)), closes [#91](#91)
  • Loading branch information
semantic-release-bot committed Aug 11, 2020
1 parent a92e976 commit e1919d8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.1.2](https://github.com/mob-sakai/UpmGitExtension/compare/v1.1.1...v1.1.2) (2020-08-11)


### Bug Fixes

* Windows defender reporting OpenSesame compilers as a Trojan ([96b163b](https://github.com/mob-sakai/UpmGitExtension/commit/96b163b0189f071652f6a2d472494cb2858e13cc)), closes [#91](https://github.com/mob-sakai/UpmGitExtension/issues/91)

## [1.1.1](https://github.com/mob-sakai/UpmGitExtension/compare/v1.1.0...v1.1.1) (2020-08-11)


Expand Down
10 changes: 5 additions & 5 deletions Editor/Coffee.UpmGitExtension/AsmdefEx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static string Install(string packageId)
{
char sep = Path.DirectorySeparatorChar;
string url = "https://globalcdn.nuget.org/packages/" + packageId.ToLower() + ".nupkg";
string downloadPath = Path.GetTempFileName() + ".nuget";
string downloadPath = ("Temp/" + Path.GetFileName(Path.GetTempFileName())).Replace('/', sep);
string installPath = ("Library/" + packageId).Replace('/', sep);
string cscToolExe = (installPath + "/tools/csc.exe").Replace('/', sep);

Expand All @@ -212,7 +212,7 @@ static string Install(string packageId)
switch (Application.platform)
{
case RuntimePlatform.WindowsEditor:
ExecuteCommand("certutil.exe", string.Format("-urlcache -f {1} \"{0}\"", downloadPath, url));
ExecuteCommand("PowerShell.exe", string.Format("curl -O {0} {1}", downloadPath, url));
break;
case RuntimePlatform.OSXEditor:
ExecuteCommand("curl", string.Format("-o {0} -L {1}", downloadPath, url));
Expand All @@ -228,13 +228,13 @@ static string Install(string packageId)
UnityEngine.Debug.LogFormat(k_LogHeader + "Extract {0} to {1} with 7z", downloadPath, installPath);
EditorUtility.DisplayProgressBar("Custom Compiler Installer", string.Format("Extract {0}", downloadPath), 0.4f);

string appPath = EditorApplication.applicationContentsPath;
string appPath = EditorApplication.applicationContentsPath.Replace('/', sep);
string args = string.Format("x {0} -o{1}", downloadPath, installPath);

switch (Application.platform)
{
case RuntimePlatform.WindowsEditor:
ExecuteCommand(appPath + "¥Tools¥7z.exe", args);
ExecuteCommand(appPath + "\\Tools\\7z.exe", args);
break;
case RuntimePlatform.OSXEditor:
case RuntimePlatform.LinuxEditor:
Expand Down Expand Up @@ -502,7 +502,7 @@ static RecompileRequest()
if (Core.LogEnabled)
UnityEngine.Debug.LogFormat("<b>Request to recompile: {0} ({1})</b>", assemblyName, asmdefPath);

EditorApplication.delayCall += () => AssetDatabase.ImportAsset(asmdefPath);
AssetDatabase.ImportAsset(asmdefPath);
}
}
#endif
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.coffee.upm-git-extension",
"version": "1.1.1",
"version": "1.1.2",
"description": "This package extends the UI of Unity Package Manager (UPM) for the packages installed from git repository.\n\n - Support GitHub, GitLab, Bitbucket, etc.\n - Link to the repogitory and offline documents\n - Install the package from git repository with UI\n - Update the package with a specific tag/branch\n - Remove the package",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit e1919d8

Please sign in to comment.