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

Commit

Permalink
[installer] Fix small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
IceflowRE committed Nov 2, 2017
1 parent 81a4a8d commit 0a8808b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 21 deletions.
2 changes: 1 addition & 1 deletion installer/hybrid/config/config.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>MP3 Monitoring</Name>
<Version>1.0.1</Version>
<Version>1.0.2</Version>
<Title>MP3 Monitoring Setup</Title>
<Publisher>Iceflower S</Publisher>
<ProductUrl>https://gitlab.com/Iceflower/mp3-monitoring/</ProductUrl>
Expand Down
4 changes: 2 additions & 2 deletions installer/hybrid/packages/mp3monitoring.gui/meta/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>mp3monitoring.gui</Name>
<DisplayName>Gui</DisplayName>
<Description>Installs the requirements for the gui: PyQt5 (~80MB). An internet connection is required.</Description>
<Version>1.0.1</Version>
<ReleaseDate>2017-10-13</ReleaseDate>
<Version>1.0.2</Version>
<ReleaseDate>2017-11-02</ReleaseDate>
<Default>false</Default>
<Dependencies>mp3monitoring</Dependencies>
<Script>installscript.js</Script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>mp3monitoring.updater</Name>
<DisplayName>Updater</DisplayName>
<Description>Installs the requirements for the updater: urllib3 (~150KB). An internet connection is required.</Description>
<Version>1.0.1</Version>
<ReleaseDate>2017-10-13</ReleaseDate>
<Version>1.0.2</Version>
<ReleaseDate>2017-11-02</ReleaseDate>
<!-- <Default>false</Default> -->
<Virtual>true</Virtual>
<Dependencies>mp3monitoring</Dependencies>
Expand Down
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.0-py3-none-any.whl";
var wheelName = "MP3_Monitoring-1.0.2-py36-none-any.whl";

function Component() {

Expand Down
4 changes: 2 additions & 2 deletions installer/hybrid/packages/mp3monitoring/meta/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Name>mp3monitoring</Name>
<DisplayName>MP3 Monitoring</DisplayName>
<Description>Installs the basic tools and its requirements: tqdm (~100KB), mutagen (~1MB). An internet connection is required.</Description>
<Version>1.0.1</Version>
<ReleaseDate>2017-10-13</ReleaseDate>
<Version>1.0.2</Version>
<ReleaseDate>2017-11-02</ReleaseDate>
<ForcedInstallation>true</ForcedInstallation>
<Licenses>
<License name="GPLv3" file="LICENSE.md" />
Expand Down
2 changes: 1 addition & 1 deletion mp3monitoring/data/static.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""
Data which are constants and should be available global.
"""
VERSION = '1.0.1'
VERSION = '1.0.2'
NAME = 'MP3-Monitoring'
AUTHOR = 'Iceflower S'
AUTHOR_GITHUB = 'https://github.com/IceflowRE'
Expand Down
22 changes: 10 additions & 12 deletions scripts/create_installer.sh
Original file line number Diff line number Diff line change
@@ -1,31 +1,29 @@
#!/bin/sh
# executed from project root

cd installer
cur_folder="./hybrid/config/data"
cur_folder="./installer/hybrid/config/data"
rm -rf ${cur_folder}
mkdir -p ${cur_folder}
inkscape ../mp3monitoring/pkg_data/gui/icon_export.svg --export-png=${cur_folder}/icon.png -w512 -h512
inkscape ./mp3monitoring/pkg_data/gui/icon_export.svg --export-png=${cur_folder}/icon.png -w512 -h512

cur_folder="./hybrid/packages/mp3monitoring/data/"
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-1.0.1-py36-none-any.whl ${cur_folder}/MP3_Monitoring-1.0.1-py36-none-any.whl
cp ./README.md ${cur_folder}/README.md
cp ./dist/MP3_Monitoring-1.0.2-py36-none-any.whl ${cur_folder}/MP3_Monitoring-1.0.2-py36-none-any.whl

cur_folder="./hybrid/packages/mp3monitoring.gui/data/"
cur_folder="./installer/hybrid/packages/mp3monitoring.gui/data/"
rm -rf ${cur_folder}
mkdir -p ${cur_folder}
cp ./icon.ico ${cur_folder}/icon.ico
cp ./installer/icon.ico ${cur_folder}/icon.ico

cur_folder="./hybrid/packages/mp3monitoring/meta/"
cp ../LICENSE.md ${cur_folder}/LICENSE.md
cur_folder="./installer/hybrid/packages/mp3monitoring/meta/"
cp ./LICENSE.md ${cur_folder}/LICENSE.md

mkdir -p bin
binarycreator -c ./hybrid/config/config.xml -p ./hybrid/packages/ --offline-only "./bin/MP3 Monitoring Hybrid Setup.exe"
binarycreator -c ./installer/hybrid/config/config.xml -p ./installer/hybrid/packages/ --offline-only "./installer/bin/MP3 Monitoring Hybrid Setup.exe"
if [ $? -ne 0 ]; then
exit 1
fi
cd ..

exit 0

0 comments on commit 0a8808b

Please sign in to comment.