Skip to content

Commit

Permalink
Update for v1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Nov 1, 2022
1 parent 612e6e9 commit cd1e9ac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
Empty file removed alfred-randomer
Empty file.
4 changes: 2 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>./dist/main/main $@</string>
<string>/usr/bin/python3 ./dist/main.py $@</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -123,7 +123,7 @@
<key>userconfigurationconfig</key>
<array/>
<key>version</key>
<string>1.4.0</string>
<string>1.5.0</string>
<key>webaddress</key>
<string>https://github.com/fedecalendino/alfred-randomer</string>
</dict>
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Randomer"
version = "1.4.0"
version = "1.5.0"
description = "Generate random values for different data types"
documentation = "https://github.com/fedecalendino/alfred-randomer/blob/main/README.md"
homepage = "https://github.com/fedecalendino/alfred-randomer"
Expand All @@ -16,7 +16,6 @@ alfred-pyflow = "latest"

[tool.poetry.dev-dependencies]
black = "22.10.0"
pyinstaller = "5.5"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
27 changes: 11 additions & 16 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
function build() {
echo "Generating $1 binary"
echo

poetry run pyinstaller --onedir --paths ./src/ "src/$1.py" 1> /dev/null

echo "Workspace cleanup"
echo
rm -rf "./dist/"

rm "./$1.spec"
rm -rf "./build/"
echo "Copy dependencies"
cp -r $(find .venv | egrep "site-packages$") ./dist

echo
echo "Finished generating bin file for $1"
echo
}
echo "Clean up dist folder"
cd dist
ls -d */ | grep info | xargs rm -rf
ls | egrep "^\_.*" | xargs rm -rf

rm -rf *.so black blackd blib2to3 distutils* pkg_resources pip* setuptools* wheel*

rm -rf "./dist/"
cd ..

build main
echo "Copy source code"
cp -r ./src/* dist

echo "Finished"
echo

0 comments on commit cd1e9ac

Please sign in to comment.