-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathastrm.bat
More file actions
28 lines (24 loc) · 1001 Bytes
/
astrm.bat
File metadata and controls
28 lines (24 loc) · 1001 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
@echo off
setlocal
if not exist ".env" (
echo .env file not found in the directory. Creating a default .env file...
echo Please update the .env file with your actual API URL and Simkl credentials for the application to work properly.
(
echo COMMENTUM_API_URL=your_api_url
echo SIMKL_CLIENT_ID=your_simkl_client_id
echo SIMKL_CLIENT_SECRET=your_simkl_client_secret
) > .env
)
if "%1" == "pack" (
if "%2" == "windows" (
echo Building windows setup executable.
echo Running command: flutter pub run inno_bundle:build --release --build-args="--dart-define-from-file=.env"
flutter pub run inno_bundle:build --release --build-args="--dart-define-from-file=.env"
exit /b 0
) else (
echo "Only windows packaging is supported at the moment. Please specify 'windows' as the second argument."
exit /b 1
)
)
echo Running command: flutter %* --dart-define-from-file=.env
flutter %* --dart-define-from-file=.env