-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimple-build.bat
More file actions
47 lines (40 loc) · 919 Bytes
/
simple-build.bat
File metadata and controls
47 lines (40 loc) · 919 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
@echo off
TITLE Multi-File Player - Simple Build
ECHO ================================
ECHO Multi-File Player Build Tool
ECHO ================================
ECHO.
ECHO Select build target:
ECHO 1. Windows only
ECHO 2. macOS only
ECHO 3. All platforms (Windows, macOS, Linux)
ECHO.
CHOICE /C 123 /M "Enter your choice"
IF ERRORLEVEL 3 GOTO all
IF ERRORLEVEL 2 GOTO mac
IF ERRORLEVEL 1 GOTO windows
:windows
ECHO.
ECHO Building for Windows...
CALL npm install
CALL npm run dist
GOTO end
:mac
ECHO.
ECHO Building for macOS...
ECHO Note: To build for macOS, you need to run this on a macOS machine
CALL npm install
CALL npm run dist-mac
GOTO end
:all
ECHO.
ECHO Building for all platforms...
ECHO Note: Building for all platforms requires appropriate build environments
CALL npm install
CALL npm run dist-all
GOTO end
:end
ECHO.
ECHO Build process finished. Check the dist folder for the executable(s).
ECHO.
PAUSE