-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL.bat
44 lines (37 loc) · 1.27 KB
/
INSTALL.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
37
38
39
40
41
42
43
44
@echo off
setlocal
:: Set the path of the executable files
set "main_exe=%~dp0main\notepad++.exe"
set "audio_exe=%~dp0tools\audio-tools.exe"
set "gfx_exe=%~dp0tools\gfx-tools.exe"
set "export_exe=%~dp0tools\export.exe"
set "other_exe=%~dp0tools\externTools.exe"
set "project_exe=%~dp0tools\create-new-project.exe"
set "compiler_exe=%~dp0tools\automatizer-batch.bat"
:: Set the path for the shortcuts
set "shortcut_dir=%userprofile%\Desktop\snes-ide"
if not exist "%shortcut_dir%" (
mkdir "%shortcut_dir%"
echo installing... %shortcut_dir%
) else (
echo installing... %shortcut_dir%
)
:: Create the shortcuts
call :CreateShortcut "text-editor" "%main_exe%"
call :CreateShortcut "audio-tools" "%audio_exe%"
call :CreateShortcut "graphic-tools" "%gfx_exe%"
call :CreateShortcut "export-rom" "%export_exe%"
call :CreateShortcut "other-tools" "%other_exe%"
call :CreateShortcut "create-new-project" "%project_exe%"
call :CreateShortcut "compiler" "%compiler_exe%"
:: Success message
echo SNES-IDE installed successfully! Check the snes-ide folder on your desktop.
:: Wait for the user to exit the prompt
pause
exit /b
:CreateShortcut
set "shortcut_name=%~1"
set "shortcut_path=%shortcut_dir%\%shortcut_name%.bat"
echo @echo off > "%shortcut_path%"
echo "%~2" >> "%shortcut_path%"
exit /b