From c359e2c154307396a1ec19191932c35c1a5d9ad5 Mon Sep 17 00:00:00 2001 From: Rod Yager Date: Thu, 19 Jan 2023 12:13:15 +1100 Subject: [PATCH] Add version numbers to script files Fix spelling error. --- PDFWriter.xcodeproj/project.pbxproj | 16 ++++++++++++++-- build/buildscript.sh | 3 ++- build/postinstall | 4 ++-- build/preinstall | 2 +- build/uninstall | 2 +- pdfwriter/main.swift | 2 +- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/PDFWriter.xcodeproj/project.pbxproj b/PDFWriter.xcodeproj/project.pbxproj index 69ac839..196a4ca 100644 --- a/PDFWriter.xcodeproj/project.pbxproj +++ b/PDFWriter.xcodeproj/project.pbxproj @@ -43,6 +43,8 @@ 5557B9212978AD6F00199134 /* preinstall */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = preinstall; sourceTree = ""; }; 5557B9222978AD6F00199134 /* PDFwriter.iconset */ = {isa = PBXFileReference; lastKnownFileType = folder.iconset; path = PDFwriter.iconset; sourceTree = ""; }; 5557B9232978AD6F00199134 /* PDFfolder.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = PDFfolder.png; sourceTree = ""; }; + 5557B9242978CBD400199134 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; + 5557B9252978CBE100199134 /* License */ = {isa = PBXFileReference; lastKnownFileType = text; path = License; sourceTree = ""; }; 55BA6F6F297812A30090F158 /* pdfwriter */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = pdfwriter; sourceTree = BUILT_PRODUCTS_DIR; }; 55BA6F71297812A40090F158 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -68,6 +70,8 @@ 5506A7A0285F18BF00C5BDF5 = { isa = PBXGroup; children = ( + 5557B9252978CBE100199134 /* License */, + 5557B9242978CBD400199134 /* README.md */, 55BA6F70297812A40090F158 /* pdfwriter */, 5506A7AB285F18BF00C5BDF5 /* PDFWriter Utility */, 5557B9192978AD6F00199134 /* build */, @@ -269,6 +273,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 3.0; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = dwarf; ENABLE_STRICT_OBJC_MSGSEND = YES; @@ -288,6 +293,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 12.3; + MARKETING_VERSION = 3.0; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -330,6 +336,7 @@ CLANG_WARN_UNREACHABLE_CODE = YES; CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; COPY_PHASE_STRIP = NO; + CURRENT_PROJECT_VERSION = 3.0; DEAD_CODE_STRIPPING = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; @@ -343,6 +350,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; MACOSX_DEPLOYMENT_TARGET = 12.3; + MARKETING_VERSION = 3.0; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; SDKROOT = macosx; @@ -361,7 +369,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 3.0; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"PDFWriter Utility/Preview Content\""; DEVELOPMENT_TEAM = ""; @@ -396,7 +404,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 1; + CURRENT_PROJECT_VERSION = 3.0; DEAD_CODE_STRIPPING = YES; DEVELOPMENT_ASSET_PATHS = "\"PDFWriter Utility/Preview Content\""; DEVELOPMENT_TEAM = ""; @@ -427,10 +435,12 @@ buildSettings = { CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 3.0; DEVELOPMENT_TEAM = H2LX99GBPZ; ENABLE_HARDENED_RUNTIME = YES; INSTALL_PATH = /; MACOSX_DEPLOYMENT_TARGET = 11.0; + MARKETING_VERSION = 3.0; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; }; @@ -442,11 +452,13 @@ CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Developer ID Application"; CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 3.0; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=macosx*]" = H2LX99GBPZ; ENABLE_HARDENED_RUNTIME = YES; INSTALL_PATH = /; MACOSX_DEPLOYMENT_TARGET = 11.0; + MARKETING_VERSION = 3.0; PRODUCT_BUNDLE_IDENTIFIER = au.rwts.PDFWriter; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/build/buildscript.sh b/build/buildscript.sh index 9919f1d..f192fc6 100755 --- a/build/buildscript.sh +++ b/build/buildscript.sh @@ -2,6 +2,7 @@ # buildscript.sh # builds RWTS PDFwriter installer package +# pdfwriter 3.0 # # Created by Rodney I. Yager on 27.05.16 # Copyright 2016-2023 Rodney I. Yager. All rights reserved @@ -40,7 +41,7 @@ xcodebuild -alltargets archive cd build -echo "### move binaries from tempory build folder" +echo "### move binaries from temporary build folder" mv "$BUILDTEMP/$UTILITYAPP" "$UTILITYAPP" mv "$BUILDTEMP/$PDFWRITER" $PDFWRITER diff --git a/build/postinstall b/build/postinstall index 22bac19..cbaa9af 100755 --- a/build/postinstall +++ b/build/postinstall @@ -1,14 +1,14 @@ #!/bin/bash # postinstall -# pdfwriter +# pdfwriter 3.0 # # Copyright 2023 Rodney I. Yager # make symlink ln -sf /Library/Printers/RWTS/PDFwriter/pdfwriter /usr/libexec/cups/backend/pdfwriter -# restrict running uninstall.sh to admin users only +# restrict running uninstall to admin users only chgrp admin /Library/Printers/RWTS/PDFwriter/uninstall chmod 750 /Library/Printers/RWTS/PDFwriter/uninstall diff --git a/build/preinstall b/build/preinstall index 2856ce1..014f4d1 100755 --- a/build/preinstall +++ b/build/preinstall @@ -1,7 +1,7 @@ #!/bin/bash # preinstall -# pdfwriter +# pdfwriter 3.0 # # Copyright 2023 Rodney I. Yager diff --git a/build/uninstall b/build/uninstall index 5ffed06..1b28eea 100755 --- a/build/uninstall +++ b/build/uninstall @@ -1,7 +1,7 @@ #!/bin/sh # uninstall -# unistall RWTS PDFwriter +# unistall pdfwriter 3.0 # # Copyright 2023 Rodney I. Yager diff --git a/pdfwriter/main.swift b/pdfwriter/main.swift index b3f1b30..a218f9d 100644 --- a/pdfwriter/main.swift +++ b/pdfwriter/main.swift @@ -1,6 +1,6 @@ // // main.swift -// pdfwriter v3.0 +// pdfwriter 3.0 // // Created by Rod Yager on 18/1/2023. //