]> git.r.bdr.sh - rbdr/Flat-Bezel.qsplugin/commitdiff
Add build files 1.0.0
authorRuben Beltran del Rio <redacted>
Sat, 11 Feb 2023 21:26:28 +0000 (22:26 +0100)
committerRuben Beltran del Rio <redacted>
Sat, 11 Feb 2023 21:26:28 +0000 (22:26 +0100)
.gitignore
Flat Bezel.xcodeproj/project.pbxproj
Info.plist
Makefile [new file with mode: 0644]
README.md
scripts/build.sh [new file with mode: 0755]

index 45257f8a24f41e0d658ca68f37ba97e8d5b41528..90d54087c6e09e2ec597cec250e5a92a2b931e91 100644 (file)
@@ -3,7 +3,6 @@
 ._.*
 *.o
 build
 ._.*
 *.o
 build
-Makefile
 autom4te.cache
 *~
 *.pbxuser
 autom4te.cache
 *~
 *.pbxuser
@@ -17,3 +16,5 @@ Developer.xcconfig
 *.xcworkspace
 *.xcuserdatad
 /release
 *.xcworkspace
 *.xcuserdatad
 /release
+.github
+Flat_Bezel.qsplugin.tar.gz
index 9b2a19339ae8555e5f2447c801b5942872a1dc58..57b07293b39c2047b86beafd108c726674fb9890 100644 (file)
                                ORGANIZATIONNAME = BRNBW;
                                TargetAttributes = {
                                        E470B7DE1709F3A0000169F2 = {
                                ORGANIZATIONNAME = BRNBW;
                                TargetAttributes = {
                                        E470B7DE1709F3A0000169F2 = {
+                                               DevelopmentTeam = S68NHQVJXW;
                                                LastSwiftMigration = 1410;
                                                LastSwiftMigration = 1410;
-                                               ProvisioningStyle = Manual;
+                                               ProvisioningStyle = Automatic;
                                        };
                                };
                        };
                                        };
                                };
                        };
                        buildSettings = {
                                CLANG_ENABLE_MODULES = YES;
                                CLANG_ENABLE_OBJC_WEAK = YES;
                        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;
                                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";
                                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;
                                SWIFT_OBJC_BRIDGING_HEADER = "Flat Bezel/FlatBezel-Bridging-Header.h";
                                SWIFT_OPTIMIZATION_LEVEL = "-Onone";
                                SWIFT_VERSION = 5.0;
                        buildSettings = {
                                CLANG_ENABLE_MODULES = YES;
                                CLANG_ENABLE_OBJC_WEAK = YES;
                        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;
                                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";
                                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;
                        };
                                SWIFT_OBJC_BRIDGING_HEADER = "Flat Bezel/FlatBezel-Bridging-Header.h";
                                SWIFT_VERSION = 5.0;
                        };
index 83b3b7501f4b3bdffa0b096dd1006f7c6713214a..8772ba802f68f9efeef0e484f426dcd46c3336e3 100644 (file)
        <key>CFBundleShortVersionString</key>
        <string>1.0.0</string>
        <key>CFBundleVersion</key>
        <key>CFBundleShortVersionString</key>
        <string>1.0.0</string>
        <key>CFBundleVersion</key>
-       <string>1</string>
-       <key>QSRequirements</key>
-       <dict>
-               <key>minHostVersion</key>
-               <string>4039</string>
-       </dict>
+       <string>18</string>
        <key>QSPlugIn</key>
        <dict>
                <key>author</key>
        <key>QSPlugIn</key>
        <dict>
                <key>author</key>
                <string>&lt;h2&gt;Flat Bezel Interface&lt;/h2&gt;
 &lt;p&gt;A new take on the Bezel Interface, using a flatter look.&lt;/p&gt;
 &lt;h3&gt;Colors&lt;/h3&gt;
                <string>&lt;h2&gt;Flat Bezel Interface&lt;/h2&gt;
 &lt;p&gt;A new take on the Bezel Interface, using a flatter look.&lt;/p&gt;
 &lt;h3&gt;Colors&lt;/h3&gt;
-&lt;p&gt;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 &apos;Customize&apos; button.&lt;/p&gt;
+&lt;p&gt;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.&lt;/p&gt;
 
 
 &lt;h3&gt;Credits&lt;/h3&gt;
 
 
 
 &lt;h3&gt;Credits&lt;/h3&gt;
 
-This plugin was created by Ruben Beltran del Río, building on top of the Yosemite interface that was originally built by Mikkel Malmberg (&lt;a href=&quot;https://github.com/mikker/&quot;&gt;@mikker&lt;/a&gt;), and updated by the Patrick Robertson and the Quicksilver Development Team.</string>
+This plugin was created by Ruben Beltran del Río, building on top of the Yosemite interface that was originally built by Mikkel Malmberg (&lt;a href="https://github.com/mikker/"&gt;@mikker&lt;/a&gt;), and updated by the Patrick Robertson and the Quicksilver Development Team.</string>
        </dict>
        <key>QSRegistration</key>
        <dict>
        </dict>
        <key>QSRegistration</key>
        <dict>
+               <key>QSCommandInterfaceControllers</key>
+               <dict>
+                       <key>Flat Bezel</key>
+                       <string>BBFlatBezelInterface</string>
+               </dict>
                <key>QSPreferencePanes</key>
                <dict>
                        <key>BBFlatBezelPrefs</key>
                <key>QSPreferencePanes</key>
                <dict>
                        <key>BBFlatBezelPrefs</key>
@@ -68,11 +68,13 @@ This plugin was created by Ruben Beltran del Río, building on top of the Yosemi
                                <string>hidden</string>
                        </dict>
                </dict>
                                <string>hidden</string>
                        </dict>
                </dict>
-               <key>QSCommandInterfaceControllers</key>
-               <dict>
-                       <key>Flat Bezel</key>
-                       <string>BBFlatBezelInterface</string>
-               </dict>
+       </dict>
+       <key>QSRequirements</key>
+       <dict>
+               <key>minHostVersion</key>
+               <string>4039</string>
+               <key>version</key>
+               <string>4001</string>
        </dict>
 </dict>
 </plist>
        </dict>
 </dict>
 </plist>
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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
index b8e9d5e0c6ed85080142a49c2f3609cdfc044846..e70058bdffb9ce808e66f6b8e7302fe9fcc94c8a 100644 (file)
--- a/README.md
+++ b/README.md
@@ -5,3 +5,17 @@
 Pre-alpha development.
 
 A new take on the Bezel Interface, using a flatter look.
 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 (executable)
index 0000000..1ae8203
--- /dev/null
@@ -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