/
build.sh
executable file
·64 lines (53 loc) · 2.38 KB
/
build.sh
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#
# Project Name : Visual Python
# Description : GUI-based Python code generator
# File Name : build.sh
# Author : Black Logic - Minju
# Note : Build Visual Python for All
# License : GPLv3 (GNU General Public License v3.0)
# Date : 2023. 02. 08
# Change Date :
#
#=============================================================================
# Set version and replace it
#=============================================================================
VP_ORG_VER=3.0.0
VP_NEW_VER=3.0.1
# update version info
grep -REil "VP_ORG_VER=.+$" colab/build.colab.sh jupyterlab/build.jupyterlab.sh jupyternotebook/build.jupyternotebook.sh | xargs sed -i "s/VP_ORG_VER=.\+$/VP_ORG_VER=${VP_ORG_VER}/g"
grep -REil "VP_NEW_VER=.+$" colab/build.colab.sh jupyterlab/build.jupyterlab.sh jupyternotebook/build.jupyternotebook.sh | xargs sed -i "s/VP_NEW_VER=.\+$/VP_NEW_VER=${VP_NEW_VER}/g"
TEMP_PWD=$PWD
#=============================================================================
# Build Visual Python for Colab
#=============================================================================
cd $TEMP_PWD/colab
./build.colab.sh
#=============================================================================
# Build Visual Python for Jupyter Notebook
#=============================================================================
cd $TEMP_PWD/jupyternotebook
./build.jupyternotebook.sh
#=============================================================================
# Build Visual Python for Jupyter Lab
#=============================================================================
cd $TEMP_PWD/jupyterlab
./build.jupyterlab.sh
#=============================================================================
# Upload (for maintainer only)
#=============================================================================
## jupyternotebook
# python -m twine upload dist/jupyternotebook/dist/*
## jupyterlab
# python -m twine upload dist/jupyterlab/*
## colab
## upload on chrome web store with blacklogic.dev
#=============================================================================
# Commit Release (for maintainer only)
#=============================================================================
# git add .
# git commit -m "deploy visualpython ${VP_NEW_VER}"
# git push origin devops
# git checkout -b release
# git push origin release
exit 0
# End of file