-
-
Notifications
You must be signed in to change notification settings - Fork 119
Expand file tree
/
Copy pathbuild.colab.sh
More file actions
executable file
·34 lines (30 loc) · 1.27 KB
/
Copy pathbuild.colab.sh
File metadata and controls
executable file
·34 lines (30 loc) · 1.27 KB
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
#
# Project Name : Visual Python
# Description : GUI-based Python code generator
# File Name : build.colab.sh
# Author : Black Logic - Minju
# Note : Build Visual Python for Colab
# License : GPLv3 (GNU General Public License v3.0)
# Date : 2023. 02. 08
# Change Date :
#
#=============================================================================
# Replace Version
#=============================================================================
VP_ORG_VER=2.5.0
VP_NEW_VER=3.0.0
# update version info
# update manifest version with new numbering for new version
grep -REil ${VP_ORG_VER//\./\\.} manifest.json | xargs sed -i "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"
# update version inside visualpython package
grep -REil ${VP_ORG_VER//\./\\.} visualpython/* | xargs sed -i --follow-symlinks "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"
#=============================================================================
# Build output for Colab
#=============================================================================
# make directories to save build output
mkdir -p ../dist/colab
# build package
# sudo apt-get install zip
zip -r ../dist/colab/visualpython-v$VP_NEW_VER.zip * -x build.colab.sh
exit 0
# End of file