Skip to content

Commit

Permalink
Add more Windows build support
Browse files Browse the repository at this point in the history
  • Loading branch information
zjkmxy committed Apr 21, 2022
1 parent 23e417f commit e12c571
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
.vscode
.idea
publish/**
resource.syso
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PACKAGE = github.com/named-data/YaNFD
VERSION = 1.0.0.0
VERSION = 1.1.0.0
# COMMIT = git rev-parse --short HEAD
# DATE != date

Expand Down Expand Up @@ -33,9 +33,10 @@ yanfdui: cleanui
# To publish a Windows Store application
# rm -rf publish
# mkdir publish
# go generate github.com/named-data/YaNFD/cmd/yanfdui
# go build -ldflags "-X 'main.Version=${VERSION}' ${PACKAGE}/cmd/yanfdui
# mv yanfdui publish/
# cp -R cmd/yanfdui/static publish/
# cp -R cmd/yanfdui/static publish/
# cp -R cmd/yanfdui/templates publish/
# cp ./ndn_app.ico publish/
# Then, create the YaNFD-x64.msix file (including publish, yanfd.toml)
4 changes: 2 additions & 2 deletions cmd/yanfdui/main.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* YaNFD - Yet another NDN Forwarding Daemon
*
* Copyright (C) 2020-2021 Eric Newberry.
* Copyright (C) 2020-2022 Eric Newberry.
*
* This file is licensed under the terms of the MIT License, as found in LICENSE.md.
*/

//go:generate goversioninfo -icon=static/ndn_app.ico
package main

import (
Expand Down
Binary file added cmd/yanfdui/static/ndn_app.ico
Binary file not shown.
43 changes: 43 additions & 0 deletions cmd/yanfdui/versioninfo.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"FixedFileInfo": {
"FileVersion": {
"Major": 1,
"Minor": 1,
"Patch": 0,
"Build": 0
},
"ProductVersion": {
"Major": 1,
"Minor": 1,
"Patch": 0,
"Build": 0
},
"FileFlagsMask": "3f",
"FileFlags ": "00",
"FileOS": "040004",
"FileType": "01",
"FileSubType": "00"
},
"StringFileInfo": {
"Comments": "",
"CompanyName": "NDN Team",
"FileDescription": "The first NDN forwarder running on Windows.",
"FileVersion": "v1.1.0.0",
"InternalName": "254XinyuMa.YaNFD",
"LegalCopyright": "Copyright (C) 2020-2022 Eric Newberry",
"LegalTrademarks": "",
"OriginalFilename": "main.go",
"PrivateBuild": "",
"ProductName": "YaNFD",
"ProductVersion": "v1.1.0.0",
"SpecialBuild": ""
},
"VarFileInfo": {
"Translation": {
"LangID": "0409",
"CharsetID": "04B0"
}
},
"IconPath": "",
"ManifestPath": ""
}
17 changes: 17 additions & 0 deletions cmd/yanfdui/yanfdui.exe.manifest
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
type="win32"
name="254XinyuMa.YaNFD"
version="1.1.0.0"
processorArchitecture="*"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="asInvoker"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>

0 comments on commit e12c571

Please sign in to comment.