Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
[build] Remove more version things
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Nov 7, 2017
1 parent 65698d2 commit 8ab600e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var tmpDir = "@RootDir@/tmp/mp3monitoring/";
var wheelName = "MP3_Monitoring-1.0.3-py36-none-any.whl";
var wheelName = "MP3_Monitoring.whl";

function Component() {

Expand Down
2 changes: 1 addition & 1 deletion scripts/create_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cur_folder="./installer/hybrid/packages/mp3monitoring/data/"
rm -rf ${cur_folder}
mkdir -p ${cur_folder}
cp ./README.md ${cur_folder}/README.md
cp ./dist/MP3_Monitoring-"$app_version"-"$py_version"-none-any.whl ${cur_folder}/MP3_Monitoring-"$app_version"-"$py_version"-none-any.whl
cp ./dist/MP3_Monitoring-"$app_version"-"$py_version"-none-any.whl ${cur_folder}/MP3_Monitoring.whl

cur_folder="./installer/hybrid/packages/mp3monitoring.gui/data/"
rm -rf ${cur_folder}
Expand Down
9 changes: 5 additions & 4 deletions scripts/new_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ rls_date=`date +%Y-%m-%d`
echo -e "$app_version""\c" > ./version

# change versions in installer
sed -i 's/<Version>[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/config/config.xml
sed -i 's/<Version>[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/packages/mp3monitoring/meta/package.xml
sed -i 's/<Version>[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/packages/mp3monitoring.gui/meta/package.xml
sed -i 's/<Version>[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/packages/mp3monitoring.updater/meta/package.xml
version_regex="[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+\.[a-zA-Z0-9]\+"
sed -i 's/<Version>'"$version_regex"'<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/config/config.xml
sed -i 's/<Version>'"$version_regex"'<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/packages/mp3monitoring/meta/package.xml
sed -i 's/<Version>'"$version_regex"'<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/packages/mp3monitoring.gui/meta/package.xml
sed -i 's/<Version>'"$version_regex"'<\/Version>/<Version>'"$app_version"'<\/Version>/' ./installer/hybrid/packages/mp3monitoring.updater/meta/package.xml

# change release date
sed -i 's/<ReleaseDate>[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}<\/ReleaseDate>/<ReleaseDate>'"$rls_date"'<\/ReleaseDate>/' ./installer/hybrid/packages/mp3monitoring/meta/package.xml
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
codecs.register(func)

_OPTIONAL = {
'with_gui': ['PyQt5 >= 5.9'],
'with_gui': ['PyQt5 >= 5.9.1'],
'with_updater': ['urllib3'],
}
with_everything = [package for optional_list in _OPTIONAL.values() for package in optional_list]
Expand Down

0 comments on commit 8ab600e

Please sign in to comment.