-
Notifications
You must be signed in to change notification settings - Fork 38
Add Sparkle auto update framework to the Mac build #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
christofmuc
wants to merge
39
commits into
master
Choose a base branch
from
features/mac_sparkle
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
676c0ce
[github] Move away from including sentry-native and winsparkle as sub…
christofmuc 56260c0
[github] Instead, adding a conan recipe for winsparkle und using that…
christofmuc a07f5fc
[github] Even better, it seems conan create does already place the pa…
christofmuc 637e246
[github] Fixing macOS build, adding publish step if tagged build.
christofmuc e6660fc
[github] Fixing sentry build flag, adding publish step if tagged build.
christofmuc 2249a80
[github] Will it find the python executable in case I do not specify …
christofmuc f6658e4
[github] Fix the publish paths. That was done a wee too quickly.
christofmuc d3ac763
[macos installer] Trying to prevent the sequential python module to a…
christofmuc cea8814
[fix] You cannot remote the runtime statement from the install direct…
christofmuc 7279a25
Trying to fix the DMG created by the github build machine.
christofmuc 6513f9e
[mac sparkle] Figuring out how to use a macOS Framework from CMake. S…
christofmuc e4411c0
[Mac Sparkle] Next try at getting Sparkle to work on Mac. This at lea…
christofmuc 16eeb1d
Merge branch 'master' into macSparkle
christofmuc b5babf0
Fix a couple of merge issues. It seems the MacSparkle branch was real…
christofmuc 7660d23
Remove Winsparkle as submodule, will keep using fetch content
christofmuc 3599014
Reverting more changes from the old branch
christofmuc 29a38f5
More mistakes spotted
christofmuc bcfcaaf
This should do it
christofmuc 9dfcac4
Fix: Should be able to build without Sparkle on Mac
christofmuc b0523e0
Why is the bundle broken?
christofmuc 957049c
Adding rpath command
christofmuc 491bfa6
Continuing to reduce the delta to the working version.
christofmuc 8fe2b81
Good night
christofmuc d6df280
Less diff
christofmuc 35da19c
Suddenly it works
christofmuc ce0375e
[Sparkle] Archive uncommitted Sparkle changes. Hope they were good.
christofmuc e0f32c5
Merge branch 'master' into features/mac_sparkle
christofmuc 7f713f7
Fix merge things
christofmuc d7f14b2
Fix merge error
christofmuc 9eb594d
Make the Sparkle compile again, updated to release 2.6.4
christofmuc c3abd91
Merge branch 'master' into features/mac_sparkle
christofmuc bbcae79
Review results
christofmuc 1f39cb7
Fix top level CMake version requirement
christofmuc dd5a081
Fix RPATH setup which should be only for Mac
christofmuc cdcd2b6
Trying to fix sparkle build
christofmuc 3836b3d
Implement review feedback
christofmuc cb5be6e
Rollback one suggestion which potentially prevents code signing to work
christofmuc 47aaf82
Adding appcast creation for macOS
christofmuc 1c8bb10
Put in the public key for the macOS update
christofmuc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| /* | ||
| Copyright (c) 2022 Christof Ruch. All rights reserved. | ||
|
|
||
| Dual licensed: Distributed under Affero GPL license by default, an MIT license is available for purchase | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| class AutoUpdaterInterface | ||
| { | ||
| public: | ||
| virtual ~AutoUpdaterInterface() = default; | ||
| virtual void checkForUpdates() = 0; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
|
|
||
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
| <plist> | ||
| <dict> | ||
| <key>SUFeedURL</key> | ||
| <string>https://raw.githubusercontent.com/christofmuc/appcasts/master/KnobKraft-Orm/appcast.xml</string> | ||
| <key>SUPublicEDKey</key> | ||
| <string>MCowBQYDK2VwAyEAWtvaPXtAM9WMjFoaE6i5ZWBTZE929CUMlCB3NiXTo0g=</string> | ||
| <key>CFBundleExecutable</key> | ||
| <string>KnobKraftOrm</string> | ||
| <key>CFBundleIconFile</key> | ||
| <string>${MACOSX_BUNDLE_ICON_FILE}</string> | ||
| <key>CFBundleIdentifier</key> | ||
| <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string> | ||
| <key>CFBundleInfoDictionaryVersion</key> | ||
| <string>6.0</string> | ||
| <key>CFBundleName</key> | ||
| <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string> | ||
| <key>CFBundlePackageType</key> | ||
| <string>APPL</string> | ||
| <key>CFBundleShortVersionString</key> | ||
| <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string> | ||
| <key>CFBundleVersion</key> | ||
| <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string> | ||
| <!-- Minimum System Version (macOS version) --> | ||
| <key>LSMinimumSystemVersion</key> | ||
| <string>10.11</string> | ||
| <key>CFBundleSupportedPlatforms</key> | ||
| <array> | ||
| <string>MacOSX</string> | ||
| </array> </dict> | ||
| </plist> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /* | ||
| Copyright (c) 2022 Christof Ruch. All rights reserved. | ||
|
|
||
| Dual licensed: Distributed under Affero GPL license by default, an MIT license is available for purchase | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "AutoUpdaterInterface.h" | ||
|
|
||
| class SparkleAutoUpdate : public AutoUpdaterInterface | ||
| { | ||
| public: | ||
| SparkleAutoUpdate (); | ||
| virtual ~SparkleAutoUpdate (); | ||
| virtual void checkForUpdates(); | ||
|
|
||
| private: | ||
| class Impl; | ||
| Impl *d; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| /* | ||
| Copyright (c) 2022 Christof Ruch. All rights reserved. | ||
|
|
||
| Dual licensed: Distributed under Affero GPL license by default, an MIT license is available for purchase | ||
| */ | ||
|
|
||
| #include "MacSparkle.h" | ||
|
|
||
| #import <Foundation/Foundation.h> | ||
| #import <Sparkle/Sparkle.h> | ||
|
|
||
| // This does not follow the new procedure at https://sparkle-project.org/documentation/programmatic-setup/ yet | ||
|
|
||
| #pragma clang diagnostic push | ||
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | ||
|
|
||
| class SparkleAutoUpdate::Impl | ||
| { | ||
| public: | ||
| SUUpdater *updater; | ||
| }; | ||
|
|
||
| SparkleAutoUpdate::SparkleAutoUpdate() | ||
| { | ||
| d = new SparkleAutoUpdate::Impl; | ||
| d->updater = [[SUUpdater sharedUpdater] retain]; | ||
| [d->updater setAutomaticallyChecksForUpdates: YES]; | ||
| [d->updater setUpdateCheckInterval: 3600]; | ||
| } | ||
|
|
||
| SparkleAutoUpdate::~SparkleAutoUpdate() | ||
| { | ||
| [d->updater release]; | ||
| delete d; | ||
| } | ||
|
|
||
| void SparkleAutoUpdate::checkForUpdates() | ||
| { | ||
| [d->updater checkForUpdates : nil]; | ||
| } | ||
|
|
||
| #pragma clang diagnostic pop |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.