-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.bat
36 lines (28 loc) · 992 Bytes
/
publish.bat
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
32
33
34
35
36
@ECHO OFF
SET prjDir=%~dp0src\DroSleep.App
SET prj=%prjDir%\DroSleep.App.csproj
SET ini=%prjDir%\DroSleep.ini
SET deployDir=%~dp0Release
SET deployWin64=%deployDir%\win-x64
SET deployLinux64=%deployDir%\linux-x64
ECHO publish to: %deployDir%
IF EXIST "%deployDir%" rmdir /s /q "%deployDir%"
dotnet publish -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true /p:IncludeNativeLibrariesForSelfExtract=true^
-r win-x64^
-o "%deployWin64%" "%prj%"
dotnet publish -c Release --self-contained true /p:PublishSingleFile=true /p:PublishTrimmed=true^
-r linux-x64^
-o "%deployLinux64%" "%prj%"
xcopy /d /s "%ini%" "%deployDir%"
REM .\windows-x64.warp-packer.exe^
REM --arch windows-x64^
REM --input_dir "%deployWin64%"^
REM --exec DroSleep.exe^
REM --output "%deployDir%\DroSleep.exe"
REM
REM .\windows-x64.warp-packer.exe^
REM --arch linux-x64^
REM --input_dir "%deployLinux64%"^
REM --exec DroSleep^
REM --output "%deployDir%\DroSleep_linux"
PAUSE