Skip to content

Commit ffb228e

Browse files
committed
Set up build & release script
1 parent d6d927d commit ffb228e

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

BepInEx.SplashScreen.GUI/BepInEx.SplashScreen.GUI.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<DebugSymbols>true</DebugSymbols>
1818
<DebugType>embedded</DebugType>
1919
<Optimize>false</Optimize>
20-
<OutputPath>..\bin\</OutputPath>
20+
<OutputPath>..\bin\BepInEx\patchers\BepInEx.SplashScreen\</OutputPath>
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
@@ -26,7 +26,7 @@
2626
<PlatformTarget>AnyCPU</PlatformTarget>
2727
<DebugType>embedded</DebugType>
2828
<Optimize>true</Optimize>
29-
<OutputPath>..\bin\</OutputPath>
29+
<OutputPath>..\bin\BepInEx\patchers\BepInEx.SplashScreen\</OutputPath>
3030
<DefineConstants>TRACE</DefineConstants>
3131
<ErrorReport>prompt</ErrorReport>
3232
<WarningLevel>4</WarningLevel>
@@ -71,6 +71,14 @@
7171
</ProjectReference>
7272
</ItemGroup>
7373
<ItemGroup>
74+
<None Include="..\LICENSE">
75+
<Link>LICENSE</Link>
76+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
77+
</None>
78+
<None Include="..\README.md">
79+
<Link>README.md</Link>
80+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
81+
</None>
7482
<None Include="App.config" />
7583
</ItemGroup>
7684
<ItemGroup>

BepInEx.SplashScreen.Patcher/BepInEx.SplashScreen.Patcher.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
<DebugSymbols>true</DebugSymbols>
2020
<DebugType>embedded</DebugType>
2121
<Optimize>false</Optimize>
22-
<OutputPath>..\bin\</OutputPath>
22+
<OutputPath>..\bin\BepInEx\patchers\BepInEx.SplashScreen\</OutputPath>
2323
<DefineConstants>DEBUG;TRACE</DefineConstants>
2424
<ErrorReport>prompt</ErrorReport>
2525
<WarningLevel>4</WarningLevel>
2626
</PropertyGroup>
2727
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2828
<DebugType>embedded</DebugType>
2929
<Optimize>true</Optimize>
30-
<OutputPath>..\bin\</OutputPath>
30+
<OutputPath>..\bin\BepInEx\patchers\BepInEx.SplashScreen\</OutputPath>
3131
<DefineConstants>TRACE</DefineConstants>
3232
<ErrorReport>prompt</ErrorReport>
3333
<WarningLevel>4</WarningLevel>

release.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
if ($PSScriptRoot -match '.+?\\bin\\?') {
2+
$dir = $PSScriptRoot + "\"
3+
}
4+
else {
5+
$dir = $PSScriptRoot + "\bin\"
6+
}
7+
8+
$BIEdir = $dir + "BepInEx\"
9+
10+
$ver = "v" + (Get-ChildItem -Path ($BIEdir) -Filter ("*.dll") -Recurse -Force)[0].VersionInfo.FileVersion.ToString() -replace "([\d+\.]+?\d+)[\.0]*$", '${1}'
11+
12+
Compress-Archive -Path ($BIEdir) -Force -CompressionLevel "Optimal" -DestinationPath ($dir + "BepInEx.SplashScreen_" + $ver + ".zip")

0 commit comments

Comments
 (0)