Add standalone win64 release packaging, Forgejo release script, and borderless/focus UX
This commit is contained in:
parent
42b17c168e
commit
385275f130
12 changed files with 698 additions and 84 deletions
|
|
@ -29,13 +29,28 @@ internal static class NativeLibraries
|
|||
|
||||
if (OS.HasFeature("template"))
|
||||
{
|
||||
string exportPath = Path.Combine(
|
||||
Path.GetDirectoryName(OS.GetExecutablePath())!,
|
||||
$"data_RustToDust.Client_{Platform()}_{Arch()}",
|
||||
fileName);
|
||||
return File.Exists(exportPath) && NativeLibrary.TryLoad(exportPath, out var exportHandle)
|
||||
? exportHandle
|
||||
: IntPtr.Zero;
|
||||
string exePath = OS.GetExecutablePath();
|
||||
string exeDir = exePath.GetBaseDir();
|
||||
string exeStem = Path.GetFileNameWithoutExtension(exePath);
|
||||
string platArch = $"{Platform()}_{Arch()}";
|
||||
|
||||
string[] candidates =
|
||||
{
|
||||
Path.Combine(exeDir, fileName),
|
||||
Path.Combine(exeDir, $"data_{exeStem}_{platArch}", fileName),
|
||||
Path.Combine(exeDir, $"data_RustToDust_{platArch}", fileName),
|
||||
Path.Combine(exeDir, $"data_RustToDust.Client_{platArch}", fileName),
|
||||
Path.Combine(AppContext.BaseDirectory, fileName),
|
||||
};
|
||||
|
||||
foreach (string candidate in candidates)
|
||||
{
|
||||
if (File.Exists(candidate) && NativeLibrary.TryLoad(candidate, out var exportHandle))
|
||||
{
|
||||
return exportHandle;
|
||||
}
|
||||
}
|
||||
return IntPtr.Zero;
|
||||
}
|
||||
|
||||
string debugPath = Path.Combine(ProjectSettings.GlobalizePath("res://.godot/mono/temp/bin/Debug"), fileName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue