Skip to content

Commit

Permalink
Update for v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Nov 2, 2022
1 parent 02cee1f commit d7e1ef4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 26 deletions.
4 changes: 2 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
<true/>
</dict>
<key>description</key>
<string></string>
<string>Keyword to generate secure passwords.</string>
<key>label</key>
<string>Password Generator keyword</string>
<key>type</key>
Expand All @@ -145,7 +145,7 @@
</dict>
</array>
<key>version</key>
<string>1.7.0</string>
<string>1.7.1</string>
<key>webaddress</key>
<string>https://github.com/fedecalendino/alfred-pwd-gen</string>
</dict>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Password Generator"
version = "1.7.0"
version = "1.7.1"
description = "Generate secure passwords"
documentation = "https://github.com/fedecalendino/alfred-pwd-gen/blob/main/README.md"
homepage = "https://github.com/fedecalendino/alfred-pwd-gen"
Expand Down
26 changes: 3 additions & 23 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,14 @@ echo "NEW VERSION: v$VERSION"
echo


echo "Building binaries..."
echo "Building dist..."
echo
./scripts/build.sh > /dev/null
echo


echo "Building release..."
echo

echo "Clean up non-exportable variables"
echo

# backup info.plist
cp info.plist old.plist

# find amount of variables to not export
VARIABLES_DONT_EXPORT_AMOUNT=$(plutil -extract variablesdontexport raw -o - ./info.plist)

for i in $(seq 0 $(expr "$VARIABLES_DONT_EXPORT_AMOUNT" - 1))
do
VARIABLE=$(plutil -extract "variablesdontexport.$i" raw -o - ./info.plist)
plutil -replace "variables.$VARIABLE" -string "" ./info.plist

echo " * $VARIABLE: cleared"
done
echo

mkdir releases 2> /dev/null
zip "releases/$FILENAME" -r dist img *.png info.plist
echo
Expand All @@ -51,6 +32,5 @@ echo "Released $NAME v$VERSION"
echo " * releases/$FILENAME"
echo

# restore original info.plist
rm info.plist
mv old.plist info.plist
echo "Opening new release"
open "./releases/$FILENAME"

0 comments on commit d7e1ef4

Please sign in to comment.