forked from flyerman/lace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LW-6744] lace-blockchain-services installers – Windows (#213)
* [LW-6744] lace-blockchain-services installers – Windows * fix: some deadlocks * ci: add Windows * ci: make the ZIP downloadable from Hydra * fix: preview/preprod on Windows (non-P2P topology) * feat: force-kill children after some grace period * fix: open currently being written to log file on Windows * build: get native Windows DLLs mostly building with MSVC * build: get all Node.js extension DLLs (native modules) built * fix: a typo * feat: package the final cardano-js-sdk for–, and enable on Windows * build: determine `chromedriverBin` version programmatically * feat: make Windows signalling more reliable * build: have a JS and no-JS version of the archive * feat: allow specifying "SIGINT" apart from "SIGBREAK" (big quotes) * feat: pass the Handle as POSIX-ish FD using a hidden Windows API… :/ * build: share `main_fd_inheritance_windows.go` * fix: make cardano-node exit gracefully on Windows in 100% cases * fix: Linux build * build: prepare an NSIS installer for Windows * build: embed the ICO in the EXE * build: silence most of Wine’s tracing * build: include ‘laceVersion’ in file names, and NSIS * build: add comments after code review * build: move ‘nixpkgs-nsis’ to flake inputs
- Loading branch information
Showing
22 changed files
with
1,716 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
nix/lace-blockchain-services/internal/go--windows-StartupInfoLpReserved2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
diff --git a/src/syscall/exec_windows.go b/src/syscall/exec_windows.go | ||
index 45295dedff..cae07b0433 100644 | ||
--- a/src/syscall/exec_windows.go | ||
+++ b/src/syscall/exec_windows.go | ||
@@ -250,6 +250,8 @@ type SysProcAttr struct { | ||
NoInheritHandles bool // if set, each inheritable handle in the calling process is not inherited by the new process | ||
AdditionalInheritedHandles []Handle // a list of additional handles, already marked as inheritable, that will be inherited by the new process | ||
ParentProcess Handle // if non-zero, the new process regards the process given by this handle as its parent process, and AdditionalInheritedHandles, if set, should exist in this parent process | ||
+ StartupInfoCbReserved2 uint16 | ||
+ StartupInfoLpReserved2 *byte | ||
} | ||
|
||
var zeroProcAttr ProcAttr | ||
@@ -410,6 +412,9 @@ func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle | ||
return 0, 0, err | ||
} | ||
|
||
+ si.CbReserved2 = sys.StartupInfoCbReserved2 | ||
+ si.LpReserved2 = sys.StartupInfoLpReserved2 | ||
+ | ||
pi := new(ProcessInformation) | ||
flags := sys.CreationFlags | CREATE_UNICODE_ENVIRONMENT | _EXTENDED_STARTUPINFO_PRESENT | ||
if sys.Token != 0 { | ||
diff --git a/src/syscall/types_windows.go b/src/syscall/types_windows.go | ||
index 384b5b4f2c..497ccf7357 100644 | ||
--- a/src/syscall/types_windows.go | ||
+++ b/src/syscall/types_windows.go | ||
@@ -483,8 +483,8 @@ type StartupInfo struct { | ||
FillAttribute uint32 | ||
Flags uint32 | ||
ShowWindow uint16 | ||
- _ uint16 | ||
- _ *byte | ||
+ CbReserved2 uint16 | ||
+ LpReserved2 *byte | ||
StdInput Handle | ||
StdOutput Handle | ||
StdErr Handle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.