Skip to content

Commit 26b4998

Browse files
committed
prepare to release driver
1 parent 46af450 commit 26b4998

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

ForTun/ForTun.vcxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474
<ConfigurationType>Driver</ConfigurationType>
7575
<DriverType>KMDF</DriverType>
7676
<DriverTargetPlatform>Universal</DriverTargetPlatform>
77+
<NetAdapterDriver>true</NetAdapterDriver>
78+
<NETADAPTER_VERSION_MAJOR>2</NETADAPTER_VERSION_MAJOR>
7779
</PropertyGroup>
7880
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'" Label="Configuration">
7981
<TargetVersion>Windows10</TargetVersion>

ForTun/fortun.ddf

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
;*** Echo.ddf example
2+
;
3+
.OPTION EXPLICIT ; Generate errors
4+
.Set CabinetFileCountThreshold=0
5+
.Set FolderFileCountThreshold=0
6+
.Set FolderSizeThreshold=0
7+
.Set MaxCabinetSize=0
8+
.Set MaxDiskFileCount=0
9+
.Set MaxDiskSize=0
10+
.Set CompressionType=MSZIP
11+
.Set Cabinet=on
12+
.Set Compress=on
13+
;Specify file name for new cab file
14+
.Set CabinetNameTemplate=fortun.cab
15+
; Specify the subdirectory for the files.
16+
; Your cab file should not have files at the root level,
17+
; and each driver package must be in a separate subfolder.
18+
.Set DestinationDir=fortun
19+
;Specify files to be included in cab file
20+
fortun.inf
21+
fortun.sys
22+
fortun.pdb

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ The Below is an example code:
1616
```rust
1717

1818
```
19+
1920
## Support Platform
2021
Windows Version: Newer than Windows 10, version 2004.
2122

@@ -24,3 +25,17 @@ Architecture Platform: x86_64.
2425
We may support `aarch64` later.
2526

2627

28+
29+
### how to build it
30+
Because of the EV certifacte, It may be very hard for developer to build the certificated driver. We just write this for a guide of our own to release the driver.
31+
```powershell
32+
# after build the driver.
33+
cp .\ForTun\fortun.ddf .\ForTun\x64\Release\ForTun\
34+
cp .\ForTun\x64\Release\ForTun.pdb .\ForTun\x64\Release\ForTun\ForTun.pdb
35+
cd .\ForTun\x64\Realse\ForTun
36+
MakeCab /f "fortun.ddf"
37+
# sign dist1/fortun.cab with EV certifacter
38+
# go to https://partner.microsoft.com/zh-cn/dashboard/hardware/Search to submit
39+
```
40+
41+

0 commit comments

Comments
 (0)