Skip to content

Commit

Permalink
qgis build script cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
landam committed Sep 10, 2024
1 parent 7ef3bf1 commit b49ede3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions bin/qgis/smoderp2d-plugin/scripts/build_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ LIB=$VENV/lib/python$pv/site-packages

pb_tool deploy -y -p zip_build/

plugin_dir=zip_build/smoderp2d_plugin
plugin_name=smoderp2d_plugin
plugin_dir=zip_build/$plugin_name
cp -r $LIB/smoderp2d $plugin_dir/
cp -r ../../base $plugin_dir/
find $plugin_dir/smoderp2d $plugin_dir/base -name __pycache__ | xargs rm -rf
Expand All @@ -25,9 +26,12 @@ for provider in 'arcgis' 'cmd' 'profile1d' 'wps'; do
rm -rvf $plugin_dir/smoderp2d/runners/${provider}.py
done

patch zip_build/smoderp2d_plugin/smoderp_2D_dockwidget.py < patches/smoderp_2D_dockwidget.patch
patch zip_build/${plugin_name}/smoderp_2D_dockwidget.py < patches/smoderp_2D_dockwidget.patch

(cd zip_build; zip -r smoderp2d_plugin.zip smoderp2d_plugin) # pb_tool zip will overwrite patched file
# copy LICENSE file
# cp ../../../LICENSE zip_build/${plugin_name}/

(cd zip_build; zip -r ${plugin_name}.zip ${plugin_name}) # pb_tool zip will overwrite patched file

deactivate
rm -rf $VENV
Expand Down

0 comments on commit b49ede3

Please sign in to comment.