-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from lolamtisch/pkg
Pkg
- Loading branch information
Showing
9 changed files
with
376 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const archiver = require('archiver'); | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const dist = path.join(__dirname, '../../dist'); | ||
|
||
var archive = archiver('zip', { | ||
zlib: { level: 9 } | ||
}); | ||
|
||
archive.pipe(fs.createWriteStream(path.join(dist, '/windows_64bit.zip'))); | ||
archive.file(path.join(dist, 'server_win_64bit.exe'), { name: 'server_win.exe' }); | ||
archive.file(path.join(__dirname, 'startup_windows.bat'), { name: 'startup_windows.bat' }); | ||
archive.finalize(); | ||
|
||
archive = archiver('zip', { | ||
zlib: { level: 9 } | ||
}); | ||
|
||
archive.pipe(fs.createWriteStream(path.join(dist, '/windows_32bit.zip'))); | ||
archive.file(path.join(dist, 'server_win_32bit.exe'), { name: 'server_win.exe' }); | ||
archive.file(path.join(__dirname, 'startup_windows.bat'), { name: 'startup_windows.bat' }); | ||
archive.finalize(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
:begin | ||
cls | ||
@echo off | ||
if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin & exit /b) | ||
|
||
Set keyname=MAL Sync Program | ||
|
||
echo MAL-Sync | ||
echo 1. Add MAL-Sync Program to Startup | ||
echo 2. Remove MAL-Sync Program From Startup | ||
echo x. Exit | ||
|
||
set /p choice= Choose A Service: | ||
if not '%choice%'== set %choice%=choice:~0,1% | ||
|
||
if '%choice%'=='1' goto :addstartup | ||
if '%choice%'=='2' goto :delstartup | ||
if '%choice%'=='x' goto :exit | ||
|
||
:addstartup | ||
cls | ||
|
||
if exist %~dp0server_win.exe ( | ||
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ /v "%keyname%" /t REG_SZ /d %~dp0server_win.exe | ||
) else ( | ||
echo File not found! | ||
) | ||
|
||
timeout /t 2 >nul | ||
|
||
goto begin | ||
|
||
:delstartup | ||
cls | ||
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run\ /v "%keyname%" /f | ||
|
||
timeout /t 2 >nul | ||
|
||
goto begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "server_win_64bit_debug", | ||
"pkg": { | ||
"assets": [ | ||
"./../../node_modules/systray/traybin/**/*release.exe" | ||
] | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.