diff --git a/README.md b/README.md index a9b726d..571413c 100644 --- a/README.md +++ b/README.md @@ -15,40 +15,30 @@ choose your preference -### using OpenUPM +### using UPM + +using `#{version}` for versioning. -As a shared dependency, this uses the openUPM package `com.system-community.systemruntimecompilerservicesunsafe`, you will need to add it to OpenUPM's scopes, and it will be pulled in by this package. +ex) -```json +``` json { "dependencies": { - "com.netpyoung.webp": "0.3.8" + "com.netpyoung.webp": "https://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp#0.3.9", + "org.nuget.system.runtime.compilerservices.unsafe": "6.0.0" }, "scopedRegistries": [ { - "name": "package.openupm.com", - "url": "https://package.openupm.com", + "name": "Unity NuGet", + "url": "https://unitynuget-registry.azurewebsites.net", "scopes": [ - "com.netpyoung.webp", - "com.system-community.systemruntimecompilerservicesunsafe" + "org.nuget" ] } ] } ``` -### using UPM - -using `#{version}` for versioning. - -ex) - -``` json -"com.netpyoung.webp": "https://github.com/netpyoung/unity.webp.git?path=unity_project/Assets/unity.webp#0.3.8", -"com.system-community.systemruntimecompilerservicesunsafe": "https://github.com/system-community/SystemRuntimeCompilerServicesUnsafe.git?path=Assets/_Root#6.0.0", - -``` - ## Example - check [Samples/ directory](https://github.com/netpyoung/unity.webp/tree/master/unity_project/Assets/Samples) diff --git a/unity_project/Assets/unity.webp/package.json b/unity_project/Assets/unity.webp/package.json index 94425b6..ad76839 100644 --- a/unity_project/Assets/unity.webp/package.json +++ b/unity_project/Assets/unity.webp/package.json @@ -1,7 +1,7 @@ { "name": "com.netpyoung.webp", "displayName": "Unity.WebP", - "version": "0.3.8", + "version": "0.3.9", "unity": "2018.4", "description": "webp made easy for Unity3d.", "keywords": ["webp","unity.webp"], diff --git a/unity_project/Assets/unitypackage-builder/Editor/PackageTool.cs b/unity_project/Assets/unitypackage-builder/Editor/PackageTool.cs index 5a3f3e0..7d5c537 100644 --- a/unity_project/Assets/unitypackage-builder/Editor/PackageTool.cs +++ b/unity_project/Assets/unitypackage-builder/Editor/PackageTool.cs @@ -5,7 +5,7 @@ public class PackageTool [MenuItem("Package/Update Package")] private static void UpdatePackage() { - const string VERSION = "0.3.8"; + const string VERSION = "0.3.9"; AssetDatabase.ExportPackage( new[] {"Assets/unity.webp"}, $"../webp-{VERSION}.unitypackage",