Skip to content

Commit

Permalink
Enable Sparkle
Browse files Browse the repository at this point in the history
  • Loading branch information
hguandl committed Apr 10, 2023
1 parent 66c76d3 commit a692611
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions PlayCover.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 233;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "PlayCover/Preview\\ Content";
Expand All @@ -802,7 +802,7 @@
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.0.maa.1;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = io.playcover.PlayCover;
Expand Down Expand Up @@ -890,7 +890,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 233;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "PlayCover/Preview\\ Content";
Expand All @@ -905,7 +905,7 @@
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 3.0.0;
MARKETING_VERSION = 3.0.0.maa.1;
ONLY_ACTIVE_ARCH = NO;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = io.playcover.PlayCover;
Expand Down
4 changes: 2 additions & 2 deletions PlayCover/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@
<key>NSSystemAdministrationUsageDescription</key>
<string>PlayCover needs to read files to save apps</string>
<key>SUFeedURL</key>
<string>https://raw.githubusercontent.com/PlayCover/PlayCover/update/appcast.xml</string>
<string>https://raw.githubusercontent.com/hguandl/PlayCover/update/appcast.xml</string>
<key>SUPublicEDKey</key>
<string>YzgQIwegeMGJxhosWRn/1IyEeEe385xcKE3cXeewlK0=</string>
<string>M7+pTisnfp6xtF7c6MK5ggzCD/5m0Xxvh0IGRVa/0TM=</string>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
Expand Down
9 changes: 3 additions & 6 deletions PlayCover/Views/Sparkle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@ final class UpdaterViewModel: ObservableObject {

var automaticallyCheckForUpdates: Bool {
get {
// updaterController.updater.automaticallyChecksForUpdates
false
updaterController.updater.automaticallyChecksForUpdates
}
set(newValue) {
// updaterController.updater.automaticallyChecksForUpdates = newValue
_ = newValue
updaterController.updater.automaticallyChecksForUpdates = false
updaterController.updater.automaticallyChecksForUpdates = newValue
}
}

Expand All @@ -44,7 +41,7 @@ final class UpdaterViewModel: ObservableObject {
}

func checkForUpdates() {
// updaterController.checkForUpdates(nil)
updaterController.checkForUpdates(nil)
}
}

Expand Down
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
set -eu -o pipefail

rm -rf build

xcodebuild clean archive -scheme PlayCover -configuration Release -archivePath build/PlayCover.xcarchive

APP_BUNDLE="build/PlayCover.xcarchive/Products/Applications/PlayCover.app"
Expand Down

0 comments on commit a692611

Please sign in to comment.