Skip to content

Commit b022b0c

Browse files
committed
Fix colab build script
1 parent 6f1c61d commit b022b0c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

colab/build.colab.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
#=============================================================================
1212
# Replace Version
1313
#=============================================================================
14-
VP_ORG_VER=2.2.12
14+
VP_ORG_VER=2.3.0
1515
VP_NEW_VER=2.3.0
16+
VP_COLAB_VER=2 # colab specified versioning
1617

1718
# update version info
1819
# update manifest version with new numbering for new version
19-
grep -REil ${VP_ORG_VER//\./\\.}\.[0-9] manifest.json | xargs sed -i "s/${VP_ORG_VER//\./\\.}\.[0-9]/${VP_NEW_VER}.1/g"
20+
grep -REil ${VP_ORG_VER//\./\\.}\.[0-9] manifest.json | xargs sed -i "s/${VP_ORG_VER//\./\\.}\.[0-9]/${VP_NEW_VER}.${VP_COLAB_VER}/g"
2021
# update version inside visualpython package
2122
grep -REil ${VP_ORG_VER//\./\\.} visualpython/* | xargs sed -i --follow-symlinks "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"
2223

@@ -28,7 +29,7 @@ mkdir -p ../dist/colab
2829

2930
# build package
3031
# sudo apt-get install zip
31-
zip -r ../dist/colab/visualpython-v$VP_NEW_VER.zip background.js content.js icon.png inject.js manifest.json visualpython
32+
zip -r ../dist/colab/visualpython-v$VP_NEW_VER.$VP_COLAB_VER.zip * -x build.colab.sh
3233

3334
exit 0
3435
# End of file

colab/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Visual Python for Colab",
33
"description": "GUI-based Python code generator for Google Colab as an extension",
4-
"version": "2.3.0.1",
4+
"version": "2.3.0.2",
55
"manifest_version": 3,
66
"icons": {
77
"48": "icon.png",

0 commit comments

Comments
 (0)