mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 08:27:44 +01:00
Update build scripts and publish single file builds
This commit is contained in:
@@ -30,7 +30,7 @@ xcopy "../pkgs/rife-ncnn" "FlowframesApp%ver%/FlowframesData\pkgs\rife-ncnn" /E
|
|||||||
|
|
||||||
echo %ver% >> "FlowframesApp%ver%/FlowframesData/ver.ini"
|
echo %ver% >> "FlowframesApp%ver%/FlowframesData/ver.ini"
|
||||||
|
|
||||||
xcopy /E "Build" "FlowframesApp%ver%"
|
xcopy "Build\Flowframes.exe" "FlowframesApp%ver%"
|
||||||
|
|
||||||
cd ..\Build
|
cd ..\Build
|
||||||
|
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ xcopy "../pkgs/rife-ncnn" "FlowframesApp%ver%/FlowframesData\pkgs\rife-ncnn" /E
|
|||||||
|
|
||||||
echo %ver% >> "FlowframesApp%ver%/FlowframesData/ver.ini"
|
echo %ver% >> "FlowframesApp%ver%/FlowframesData/ver.ini"
|
||||||
|
|
||||||
xcopy /E "Build" "FlowframesApp%ver%"
|
xcopy "Build\Flowframes.exe" "FlowframesApp%ver%"
|
||||||
|
|
||||||
cd ..\Build
|
cd ..\Build
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,12 @@
|
|||||||
<TargetFramework>net5.0-windows</TargetFramework>
|
<TargetFramework>net5.0-windows</TargetFramework>
|
||||||
<UseWindowsForms>true</UseWindowsForms>
|
<UseWindowsForms>true</UseWindowsForms>
|
||||||
|
|
||||||
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
||||||
<PublishTrimmed>true</PublishTrimmed>
|
<PublishSingleFile>true</PublishSingleFile>
|
||||||
|
<SelfContained>false</SelfContained>
|
||||||
|
<IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract>
|
||||||
|
<PublishTrimmed>false</PublishTrimmed>
|
||||||
|
<PublishReadyToRun>true</PublishReadyToRun>
|
||||||
|
|
||||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||||
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute>
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ namespace Flowframes.IO
|
|||||||
|
|
||||||
public static string GetExeDir()
|
public static string GetExeDir()
|
||||||
{
|
{
|
||||||
return AppDomain.CurrentDomain.BaseDirectory;
|
var fileName = Process.GetCurrentProcess().MainModule?.FileName;
|
||||||
|
return fileName != null ? Directory.GetParent(fileName).ToString() : AppDomain.CurrentDomain.BaseDirectory;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Image GetImage(string path)
|
public static Image GetImage(string path)
|
||||||
|
|||||||
6
Code/nuget.config
Normal file
6
Code/nuget.config
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<configuration>
|
||||||
|
<packageSources>
|
||||||
|
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||||
|
</packageSources>
|
||||||
|
</configuration>
|
||||||
Reference in New Issue
Block a user