-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuildDebug.sh
More file actions
executable file
·35 lines (30 loc) · 885 Bytes
/
buildDebug.sh
File metadata and controls
executable file
·35 lines (30 loc) · 885 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
#!/bin/bash
#############################################################
# A script to produce a debug build of the desktop app's code
#############################################################
cd "$(dirname "${BASH_SOURCE[0]}")"
#
# Build the main side of the Electron app
#
echo 'Building main code ...'
NODE_OPTIONS='--import tsx' npx webpack --config webpack/main/webpack.config.dev.ts
if [ $? -ne 0 ]; then
echo 'Problem encountered building the main side of the desktop app'
read -n 1
exit 1
fi
#
# Build the renderer side of the Electron app in watch mode
#
echo
echo 'Building renderer code in watch mode ...'
NODE_OPTIONS='--import tsx' npx webpack --config webpack/renderer/webpack.config.dev.ts --watch
if [ $? -ne 0 ]; then
echo 'Problem encountered building the renderer side of the desktop app'
read -n 1
exit 1
fi
#
# Wait for completion
#
read -n 1