forked from Crich1187/example-csharp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdistelli-manifest.yml
More file actions
32 lines (25 loc) · 951 Bytes
/
distelli-manifest.yml
File metadata and controls
32 lines (25 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
bmcgehee/example-csharp:
Env:
- 'DOTNETDIR: "%windir%\Microsoft.NET\Framework\v4.0.30319"'
- 'CSCEXE: "%DOTNETDIR%\csc.exe"'
- 'PORT: "8080"'
Build:
- 'set DOTNETDIR=%windir%\Microsoft.NET\Framework\v4.0.30319'
- echo "DOTNETDIR is %DOTNETDIR%"
- echo "about to make release dir"
- mkdir -p release
- echo "done making dir"
- echo "about to build"
- '%DOTNETDIR%\csc.exe /out:release/webserver.exe webserver.cs'
- dir release
- echo "done building"
PkgInclude:
- release\webserver.exe
PreInstall:
- echo "Begin PreInstall"
PostInstall:
- netsh advfirewall firewall add rule name="TCP Port %PORT%" dir=in action=allow protocol=TCP localport=%PORT%
- netsh advfirewall firewall delete rule name="TCP Port %PORT%"
- netsh advfirewall firewall add rule name="TCP Port %PORT%" dir=in action=allow protocol=TCP localport=%PORT%
Exec:
- release\webserver.exe