Skip to content

Commit 84ab0ad

Browse files
committed
Example develop+deploy script to inject built assets into uu.chart on a
Mac development environment
1 parent 39cee57 commit 84ab0ad

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

deploy-plotqi.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
PROJPATH=$HOME/projects
4+
SRCPATH=$PROJPATH/plotqi/build
5+
PKGPATH=$PROJPATH/upiq5/app/src/uu.chart
6+
DESTPATH=$PKGPATH/uu/chart/browser/resources/plotqi
7+
8+
# copy assets from plotqi build to uu.chart resource directory:
9+
10+
cp $SRCPATH/plotqi.*s* $DESTPATH
11+
12+
# open a new iTerm2 window in
13+
osascript <<EOF
14+
    tell application "iTerm2"
15+
        activate
16+
        tell current session of current window
17+
            set newsession1 to (split vertically with default profile)
18+
            select newsession1
19+
        end tell
20+
        tell current session of current window
21+
            write text "cd $DESTPATH"
22+
            write text "git status"
23+
        end tell
24+
    end tell
25+
EOF

0 commit comments

Comments
 (0)