Sorry that the README is not complete
This commit is contained in:
parent
4944637550
commit
9609e5c791
|
@ -100,7 +100,7 @@ public class TimelapsePack
|
|||
}
|
||||
return null;
|
||||
}
|
||||
public static void DirCopy(string src,string dest,Func<string,bool> copyItem)
|
||||
public static void DirCopy(string src,string dest,Func<string,bool>? copyItem)
|
||||
{
|
||||
foreach(var f in Directory.GetDirectories(src))
|
||||
{
|
||||
|
@ -109,6 +109,7 @@ public class TimelapsePack
|
|||
continue;
|
||||
}
|
||||
string fname =Path.GetFileName(f);
|
||||
|
||||
DirCopy(f,fname,copyItem);
|
||||
}
|
||||
|
||||
|
@ -141,8 +142,10 @@ public class TimelapsePack
|
|||
{
|
||||
Directory.CreateDirectory("_build/extension");
|
||||
File.Copy("extension_info.json","_build/extension_info.json");
|
||||
string? dirname=Path.GetDirectoryName(outPut);
|
||||
|
||||
DirCopy(Path.GetDirectoryName(outPut),"_build/extension",(e)=>{
|
||||
if(!string.IsNullOrWhiteSpace(dirname)){
|
||||
DirCopy(dirname,"_build/extension",(e)=>{
|
||||
if(e==outPut)
|
||||
{
|
||||
return false;
|
||||
|
@ -165,6 +168,7 @@ public class TimelapsePack
|
|||
ZipFile.CreateFromDirectory ("_build",fname,CompressionLevel.SmallestSize, false);
|
||||
Directory.Delete("_build");
|
||||
return fname;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -176,7 +180,9 @@ public class TimelapsePack
|
|||
|
||||
Console.Write($"Are you sure you want to delete {name} (Yes/No): ");
|
||||
j:
|
||||
var read=Console.ReadLine().ToLower();
|
||||
var read=Console.ReadLine();
|
||||
if(string.IsNullOrWhiteSpace(read)) read="";
|
||||
read=read.ToLower();
|
||||
if(read == "yes")
|
||||
{
|
||||
Console.WriteLine("I asked ya, you said yes so deleting");
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\TimelapseApi\TimelapseApi.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Tesses.TimelapseApi" Version="1.0.1" />
|
||||
|
||||
<PackageReference Include="System.IO.Compression.ZipFile" Version="4.3.0" />
|
||||
</ItemGroup>
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
<PackageId>Tesses.TimelapseApi</PackageId>
|
||||
<Authors>Mike Nolan</Authors>
|
||||
<Company>Tesses</Company>
|
||||
<Version>1.0.0</Version>
|
||||
<AssemblyVersion>1.0.0</AssemblyVersion>
|
||||
<FileVersion>1.0.0</FileVersion>
|
||||
<Version>1.0.1</Version>
|
||||
<AssemblyVersion>1.0.1</AssemblyVersion>
|
||||
<FileVersion>1.0.1</FileVersion>
|
||||
<Description>The api for TimelapseNow</Description>
|
||||
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
|
||||
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
|
||||
|
|
|
@ -24,8 +24,6 @@ internal class FrameHandlerSettingsForm : Dialog
|
|||
internal class FrameHandlerSettings
|
||||
{
|
||||
public Guid Guid;
|
||||
CheckBox? cb;
|
||||
private bool? _chk;
|
||||
|
||||
public FrameHandlerSettings(TimelapseExtension ext,string handlerName,bool overlay,bool block)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue