Skip to content

Commit

Permalink
Update resource file with requireAdministrator, added resources.rc an…
Browse files Browse the repository at this point in the history
…d manifests.xml
  • Loading branch information
mlsmaycon committed Jun 22, 2021
1 parent 52db303 commit 1a06518
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ var logger service.Logger
func newSVCConfig() *service.Config {
return &service.Config{
Name: "wiretrustee",
DisplayName: "wiretrustee",
Description: "This is an example Go service.",
DisplayName: "Wiretrustee",
Description: "A WireGuard-based mesh network that connects your devices into a single private network.",
}
}

Expand Down
17 changes: 17 additions & 0 deletions manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="0.0.0.1"
processorArchitecture="*"
name="wiretrustee.exe"
type="win32"
/>
<description>Wiretrustee application</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
9 changes: 9 additions & 0 deletions resources.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#include <windows.h>

#pragma code_page(65001) // UTF-8

#define STRINGIZE(x) #x
#define EXPAND(x) STRINGIZE(x)
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST manifest.xml
wintun.dll RCDATA wintun.dll

Binary file modified resources_windows_amd64.syso
Binary file not shown.

0 comments on commit 1a06518

Please sign in to comment.