From: Ruben Beltran del Rio Date: Sat, 11 Feb 2023 21:26:28 +0000 (+0100) Subject: Add build files X-Git-Tag: 1.0.0 X-Git-Url: https://git.r.bdr.sh/rbdr/Flat-Bezel.qsplugin/commitdiff_plain/6c2cdbc5ffb3ec1775c25d122751bddc5d205b6a?hp=8f25550f0d360a5bba3a9d7d21ee04633320c99c Add build files --- diff --git a/.gitignore b/.gitignore index 45257f8..90d5408 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,6 @@ ._.* *.o build -Makefile autom4te.cache *~ *.pbxuser @@ -17,3 +16,5 @@ Developer.xcconfig *.xcworkspace *.xcuserdatad /release +.github +Flat_Bezel.qsplugin.tar.gz diff --git a/Flat Bezel.xcodeproj/project.pbxproj b/Flat Bezel.xcodeproj/project.pbxproj index 9b2a193..57b0729 100644 --- a/Flat Bezel.xcodeproj/project.pbxproj +++ b/Flat Bezel.xcodeproj/project.pbxproj @@ -151,8 +151,9 @@ ORGANIZATIONNAME = BRNBW; TargetAttributes = { E470B7DE1709F3A0000169F2 = { + DevelopmentTeam = S68NHQVJXW; LastSwiftMigration = 1410; - ProvisioningStyle = Manual; + ProvisioningStyle = Automatic; }; }; }; @@ -284,12 +285,18 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 10; DEAD_CODE_STRIPPING = YES; DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = S68NHQVJXW; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 12.0; PRODUCT_BUNDLE_IDENTIFIER = "pizza.unlimited.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "Flat Bezel"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Flat Bezel/FlatBezel-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -302,12 +309,18 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CLANG_ENABLE_OBJC_WEAK = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 10; DEAD_CODE_STRIPPING = YES; DEFINES_MODULE = YES; + DEVELOPMENT_TEAM = S68NHQVJXW; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks"; MACOSX_DEPLOYMENT_TARGET = 12.0; PRODUCT_BUNDLE_IDENTIFIER = "pizza.unlimited.${PRODUCT_NAME:rfc1034identifier}"; PRODUCT_NAME = "Flat Bezel"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Flat Bezel/FlatBezel-Bridging-Header.h"; SWIFT_VERSION = 5.0; }; diff --git a/Info.plist b/Info.plist index 83b3b75..8772ba8 100644 --- a/Info.plist +++ b/Info.plist @@ -19,12 +19,7 @@ CFBundleShortVersionString 1.0.0 CFBundleVersion - 1 - QSRequirements - - minHostVersion - 4039 - + 18 QSPlugIn author @@ -39,15 +34,20 @@ <h2>Flat Bezel Interface</h2> <p>A new take on the Bezel Interface, using a flatter look.</p> <h3>Colors</h3> -<p>Both light mode and dark mode are supported by this plugin. Choose your color preferences by enabling the Flat Bezel interface in the Appearance preferences, and then clicking the 'Customize' button.</p> +<p>Both light mode and dark mode are supported by this plugin. Choose your color preferences by enabling the Flat Bezel interface in the Appearance preferences, and then clicking the 'Customize' button.</p> <h3>Credits</h3> -This plugin was created by Ruben Beltran del Río, building on top of the Yosemite interface that was originally built by Mikkel Malmberg (<a href="https://github.com/mikker/">@mikker</a>), and updated by the Patrick Robertson and the Quicksilver Development Team. +This plugin was created by Ruben Beltran del Río, building on top of the Yosemite interface that was originally built by Mikkel Malmberg (<a href="https://github.com/mikker/">@mikker</a>), and updated by the Patrick Robertson and the Quicksilver Development Team. QSRegistration + QSCommandInterfaceControllers + + Flat Bezel + BBFlatBezelInterface + QSPreferencePanes BBFlatBezelPrefs @@ -68,11 +68,13 @@ This plugin was created by Ruben Beltran del Río, building on top of the Yosemi hidden - QSCommandInterfaceControllers - - Flat Bezel - BBFlatBezelInterface - + + QSRequirements + + minHostVersion + 4039 + version + 4001 diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eb7c360 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +configuration = Debug +quicksilver_path = "../../vendor/Quicksilver/Quicksilver/" + +default: build + +build: + configuration=$(configuration) quicksilver_path=$(quicksilver_path) ./scripts/build.sh diff --git a/README.md b/README.md index b8e9d5e..e70058b 100644 --- a/README.md +++ b/README.md @@ -5,3 +5,17 @@ Pre-alpha development. A new take on the Bezel Interface, using a flatter look. + +## Building + +For easy CLI build you can run `make`. The default configuration is `Debug`, +but you can change the configuration by running `make -e configuration=Release`. + +This assumes quicksilver is checked out in `../../vendor/Quicksilver`, but this +value can be updated with the `quicksilver_path` variable (eg. +`make -e quicksilver_path=../Quicksilver`). + +## Building for release + +To build for release you will have to set the environment variable +`$SIGNING_IDENTITY`, otherwise it won't be correctly signed diff --git a/scripts/build.sh b/scripts/build.sh new file mode 100755 index 0000000..1ae8203 --- /dev/null +++ b/scripts/build.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env sh + +set -e + +echo "Starting build with configuration ${configuration}" > /dev/stderr +echo "Quicksilver path is: ${quicksilver_path}" > /dev/stderr +pushd "${quicksilver_path}" +echo "Starting build at `pwd`" > /dev/stderr +xcodebuild \ + -quiet \ + -destination generic/platform=macos \ + -configuration "${configuration}" \ + -scheme 'Quicksilver Distribution' \ + build +popd +echo "Building `pwd`" > /dev/stderr +xcodebuild \ + -quiet \ + -destination generic/platform=macos \ + -configuration "${configuration}" \ + -scheme 'Flat Bezel' \ + build + +echo "Build complete, signing." > /dev/stderr +output_path="/tmp/QS/build/Release/Quicksilver.app/Contents/PlugIns/" +plugin_name="Flat Bezel.qsplugin" +codesign --force -vvv --deep --sign ${SIGNING_IDENTITY} "${output_path}${plugin_name}" + +echo "Signing complete, archiving." > /dev/stderr +archive_name="Flat_Bezel.qsplugin.tar.gz" +pushd "${output_path}" +tar -czvf "${archive_name}" "${plugin_name}" +popd +mv "${output_path}${archive_name}" . +echo "Done." > /dev/stderr