Skip to content

Commit

Permalink
Create single-file-executable
Browse files Browse the repository at this point in the history
  • Loading branch information
nzain committed Apr 9, 2019
1 parent b7487a4 commit 91906f5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -329,3 +329,4 @@ ASALocalRun/
# MFractors (Xamarin productivity tool) working folder
.mfractor/
samples/Monitor10-analysis.csv
windows-x64.warp-packer.exe
10 changes: 9 additions & 1 deletion publish.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ 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 deployExe=%deployDir%\DroSleep.exe

ECHO publish to: %deployDir%

IF EXIST "%deployDir%" rmdir /s /q "%deployDir%"

dotnet publish -c Release -r win-x64 -o "%deployDir%" "%prj%"
dotnet publish -c Release -r win-x64 -o "%deployWin64%" "%prj%"
xcopy /d /s "%ini%" "%deployDir%"

.\windows-x64.warp-packer.exe^
--arch windows-x64^
--input_dir "%deployWin64%"^
--exec DroSleep.exe^
--output "%deployExe%"

PAUSE

0 comments on commit 91906f5

Please sign in to comment.