Launch
This commit is contained in:
BIN
cmd/socksrevivepc/admin_windows.syso
Normal file
BIN
cmd/socksrevivepc/admin_windows.syso
Normal file
Binary file not shown.
31
cmd/socksrevivepc/main.go
Normal file
31
cmd/socksrevivepc/main.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"runtime/debug"
|
||||
|
||||
"socksrevivepc/internal/app"
|
||||
"socksrevivepc/internal/crash"
|
||||
"socksrevivepc/internal/nativeui"
|
||||
)
|
||||
|
||||
func main() {
|
||||
debug.SetTraceback("all")
|
||||
root := "."
|
||||
if wd, err := os.Getwd(); err == nil && wd != "" {
|
||||
root = wd
|
||||
}
|
||||
closeLog := crash.AttachLog(root)
|
||||
defer closeLog()
|
||||
defer crash.Recover(root)
|
||||
|
||||
application, err := app.New()
|
||||
if err != nil {
|
||||
crash.Write(root, "init failed", err)
|
||||
log.Printf("init failed: %v", err)
|
||||
return
|
||||
}
|
||||
log.Printf("app root: %s", application.Root)
|
||||
nativeui.Run(application)
|
||||
}
|
||||
25
cmd/socksrevivepc/socksrevivepc.exe.manifest
Normal file
25
cmd/socksrevivepc/socksrevivepc.exe.manifest
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
|
||||
<assemblyIdentity
|
||||
version="1.0.0.0"
|
||||
processorArchitecture="amd64"
|
||||
name="SocksRevivePC"
|
||||
type="win32" />
|
||||
<description>SocksRevive PC</description>
|
||||
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
|
||||
<security>
|
||||
<requestedPrivileges>
|
||||
<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />
|
||||
</requestedPrivileges>
|
||||
</security>
|
||||
</trustInfo>
|
||||
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
|
||||
<application>
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
|
||||
<supportedOS Id="{e2011457-1546-43c5-a5fe-008deee3d3f0}" />
|
||||
<supportedOS Id="{35138b9a-5d96-4fbd-8e2d-a2440225f93a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
</assembly>
|
||||
3
cmd/socksrevivepc/socksrevivepc_windows.rc
Normal file
3
cmd/socksrevivepc/socksrevivepc_windows.rc
Normal file
@@ -0,0 +1,3 @@
|
||||
// Windows application manifest resource.
|
||||
// RT_MANIFEST is resource type 24.
|
||||
1 24 "cmd/socksrevivepc/socksrevivepc.exe.manifest"
|
||||
Reference in New Issue
Block a user