Revision: 28236
          http://sourceforge.net/p/bibdesk/svn/28236
Author:   hofman
Date:     2023-04-20 22:18:32 +0000 (Thu, 20 Apr 2023)
Log Message:
-----------
add option to build script to not generate appcast and release notes

Modified Paths:
--------------
    trunk/bibdesk/build_release.py

Modified: trunk/bibdesk/build_release.py
===================================================================
--- trunk/bibdesk/build_release.py      2023-04-20 21:03:28 UTC (rev 28235)
+++ trunk/bibdesk/build_release.py      2023-04-20 22:18:32 UTC (rev 28236)
@@ -9,7 +9,7 @@
 
 #
 # SYNOPSIS
-#   build_release.sh [-s sign_id] [-n notarize_password] [-o out] [-a 
zip|dmg|] [-v version]
+#   build_release.sh [-s sign_id] [-n notarize_password] [-o out] [-a 
zip|dmg|] [-v version] [-t]
 #
 # OPTIONS
 #   -s --sign
@@ -22,6 +22,8 @@
 #      The type of archive the app bundle is wrapped in, the prepared disk 
image when empty
 #   -v, --version
 #      The new short version string, also bumps the version when this is passed
+#   -t, --test
+#      Prepare a test version, don't create appcast and release notes
 #
 
 #
@@ -529,9 +531,10 @@
     out = os.path.join(os.getenv("HOME"), "Desktop")
     archive = ""
     version = ""
+    test = False
     
     try:
-        opts, args = getopt.getopt(sys.argv[1:], "s:n:o:a:v:", ["sign=", 
"notarize=", "out=", "archive=", "version="])
+        opts, args = getopt.getopt(sys.argv[1:], "s:n:o:a:v:t", ["sign=", 
"notarize=", "out=", "archive=", "version=", "test"])
     except:
         sys.stderr.write("error reading options\n")
     
@@ -546,12 +549,14 @@
             archive = arg
         elif opt in ["-v", "--version"]:
             version = arg
+        elif opt in ["-t", "--test"]:
+            test = True
     
     return sign, notarize, out, archive, version
 
 if __name__ == '__main__':
     
-    sign_id, notarize_password, out, archive, version = get_options()
+    sign_id, notarize_password, out, archive, version, test = get_options()
     
     if version != "":
         bump_versions(version)
@@ -600,7 +605,8 @@
     except Exception as e:
         assert os.path.isdir(out), "%s does not exist" % (out)
     
-    write_appcast_and_release_notes(new_version, new_version_string, 
minimum_system_version, archive_path, out)
+    if not test:
+        write_appcast_and_release_notes(new_version, new_version_string, 
minimum_system_version, archive_path, out)
     
     target_path = os.path.join(out, os.path.basename(archive_path))
     if (os.path.exists(target_path)):

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to