Skip to content

Commit

Permalink
Make archive faile when Sparkle.framework is not bundled
Browse files Browse the repository at this point in the history
  • Loading branch information
1024jp committed Jan 22, 2024
1 parent afcd6fd commit a684d87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ Script for non-AppStore version releasing.

License
-----------------------------
© 2017-2022 1024jp.
© 2017-2024 1024jp.

The source code is distributed under the terms of the __Apache License, Version 2.0__. See the [LICENSE](LICENSE) for details.
6 changes: 6 additions & 0 deletions archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ def main(src_path: str = SRC_PATH):
sys.exit(Style.FAIL + '[Error]' + Style.END +
' No application found in the source folder.')

# check existance of Sparkle.framework
sparkle_path = app_path + "/Contents/Frameworks/Sparkle.framework"
if not os.path.isdir(sparkle_path):
sys.exit(Style.FAIL + '[Error]' + Style.END +
' Sparkle framework is not bundled.')

# get app info from Info.plist
plist_path = os.path.join(app_path, 'Contents', 'Info.plist')
with open(plist_path, 'rb') as fp:
Expand Down

0 comments on commit a684d87

Please sign in to comment.