Skip to content

Commit

Permalink
Change how the version is implemented (#12)
Browse files Browse the repository at this point in the history
Changed from finding <Version>1.0.0</Version> & replacing to just replacing {version} with "replaces": "{version}"
  • Loading branch information
Xilophor authored Feb 18, 2024
1 parent 9d628c6 commit 83a8749
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 110 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,8 @@
"type": "parameter",
"description": "Plugin version",
"datatype": "text",
"replaces": "{version}",
"defaultValue": "1.0.0"
},
"VersionImpl": {
"type": "generated",
"generator": "join",
"replaces": "<Version>1.0.0</Version>",
"parameters": {
"symbols": [
{
"type": "const",
"value": "<Version>"
},
{
"type": "ref",
"value": "Version"
},
{
"type": "const",
"value": "</Version>"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net35</TargetFramework>
<AssemblyName>BepInEx5.PluginTemplate</AssemblyName>
<Product>My first plugin</Product>
<Version>1.0.0</Version>
<Version>{version}</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,8 @@
"type": "parameter",
"description": "Plugin version",
"datatype": "text",
"replaces": "{version}",
"defaultValue": "1.0.0"
},
"VersionImpl": {
"type": "generated",
"generator": "join",
"replaces": "<Version>1.0.0</Version>",
"parameters": {
"symbols": [
{
"type": "const",
"value": "<Version>"
},
{
"type": "ref",
"value": "Version"
},
{
"type": "const",
"value": "</Version>"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>BepInEx6.PluginTemplate.NET.CoreCLR</AssemblyName>
<Product>My first plugin</Product>
<Version>1.0.0</Version>
<Version>{version}</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,8 @@
"type": "parameter",
"description": "Plugin version",
"datatype": "text",
"replaces": "{version}",
"defaultValue": "1.0.0"
},
"VersionImpl": {
"type": "generated",
"generator": "join",
"replaces": "<Version>1.0.0</Version>",
"parameters": {
"symbols": [
{
"type": "const",
"value": "<Version>"
},
{
"type": "ref",
"value": "Version"
},
{
"type": "const",
"value": "</Version>"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net452</TargetFramework>
<AssemblyName>BepInEx6.PluginTemplate.NET.Framework</AssemblyName>
<Product>My first plugin</Product>
<Version>1.0.0</Version>
<Version>{version}</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,8 @@
"type": "parameter",
"description": "Plugin version",
"datatype": "text",
"replaces": "{version}",
"defaultValue": "1.0.0"
},
"VersionImpl": {
"type": "generated",
"generator": "join",
"replaces": "<Version>1.0.0</Version>",
"parameters": {
"symbols": [
{
"type": "const",
"value": "<Version>"
},
{
"type": "ref",
"value": "Version"
},
{
"type": "const",
"value": "</Version>"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>BepInEx6.PluginTemplate.Unity.Il2Cpp</AssemblyName>
<Product>My first plugin</Product>
<Version>1.0.0</Version>
<Version>{version}</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,28 +37,8 @@
"type": "parameter",
"description": "Plugin version",
"datatype": "text",
"replaces": "{version}",
"defaultValue": "1.0.0"
},
"VersionImpl": {
"type": "generated",
"generator": "join",
"replaces": "<Version>1.0.0</Version>",
"parameters": {
"symbols": [
{
"type": "const",
"value": "<Version>"
},
{
"type": "ref",
"value": "Version"
},
{
"type": "const",
"value": "</Version>"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net35</TargetFramework>
<AssemblyName>BepInEx6.PluginTemplate.Unity.Mono</AssemblyName>
<Product>My first plugin</Product>
<Version>1.0.0</Version>
<Version>{version}</Version>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>latest</LangVersion>
<RestoreAdditionalProjectSources>
Expand Down

0 comments on commit 83a8749

Please sign in to comment.