aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--Flat Bezel.xcodeproj/project.pbxproj15
-rw-r--r--Info.plist28
-rw-r--r--Makefile7
-rw-r--r--README.md14
-rwxr-xr-xscripts/build.sh35
6 files changed, 87 insertions, 15 deletions
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 @@
<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>
@@ -39,15 +34,20 @@
<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;
-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>
+ <key>QSCommandInterfaceControllers</key>
+ <dict>
+ <key>Flat Bezel</key>
+ <string>BBFlatBezelInterface</string>
+ </dict>
<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>
- <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>
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