Skip to content

Commit

Permalink
Update for v1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fedecalendino committed Nov 2, 2022
1 parent 7d4b298 commit a30397e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
4 changes: 2 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
<key>placeholder</key>
<string></string>
<key>required</key>
<true/>
<false/>
<key>trim</key>
<true/>
</dict>
Expand All @@ -145,7 +145,7 @@
</dict>
</array>
<key>version</key>
<string>1.5.0</string>
<string>1.5.1</string>
<key>webaddress</key>
<string>https://github.com/fedecalendino/alfred-randomer</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 = "Randomer"
version = "1.5.0"
version = "1.5.1"
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 Down
24 changes: 2 additions & 22 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,6 @@ 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 a30397e

Please sign in to comment.