Skip to content

Commit 81bb261

Browse files
authored
chore: minor adjustments (#85)
2 parents 9296bb2 + 26781d3 commit 81bb261

File tree

8 files changed

+159
-9
lines changed

8 files changed

+159
-9
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
to: HEAD
7070

7171
- name: Build macOS app
72-
run: xcodebuild archive -scheme "ishare" -configuration "Release" -archivePath "build/ishare.xcarchive" -destination "generic/platform=macOS,name=Any Mac" CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO "OTHER_SWIFT_FLAGS=${inherited} -D NOT_APP_STORE" | xcbeautify
72+
run: xcodebuild archive -scheme "GitHub" -configuration "GitHub" -archivePath "build/ishare.xcarchive" -destination "generic/platform=macOS,name=Any Mac" CODE_SIGN_IDENTITY="" CODE_SIGNING_ALLOWED=NO "OTHER_SWIFT_FLAGS=${inherited} -D GITHUB_RELEASE" | xcbeautify
7373

7474
- name: Sign, Package and Notarize .app
7575
run: |
@@ -83,7 +83,8 @@ jobs:
8383
codesign -s "Developer ID Application" -f --timestamp -o runtime --deep "ishare.app"
8484
npm install --global create-dmg
8585
create-dmg "ishare.app" --overwrite
86-
DMG_FILE=$(ls *.dmg)
86+
mv *.dmg ishare.dmg
87+
DMG_FILE="ishare.dmg"
8788
echo "DMG_FILE=$DMG_FILE" >> $GITHUB_ENV
8889
xcrun notarytool submit "$DMG_FILE" --wait --apple-id "${{ secrets.NOTARIZATION_USERNAME }}" --password "${{ secrets.NOTARIZATION_PASSWORD }}" --team-id "L988J7YMK5"
8990
xcrun stapler staple "$DMG_FILE"
@@ -154,11 +155,13 @@ jobs:
154155

155156
- name: Setup Pages
156157
uses: actions/configure-pages@v3
158+
157159
- name: Build with Jekyll
158160
uses: actions/jekyll-build-pages@v1
159161
with:
160162
source: ./
161163
destination: ./_site
164+
162165
- name: Upload artifact
163166
uses: actions/upload-pages-artifact@v2
164167

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</a>
4747
</p>
4848
<p align="center">
49-
<a href="https://github.com/castdrian/ishare/releases/latest/download/ishare_macOS.zip" download>
49+
<a href="https://github.com/castdrian/ishare/releases/latest/download/ishare.dmg" download>
5050
<img src="https://i.imgur.com/EthZVfR.png" alt="Download Latest Release" width="200">
5151
</a>
5252
</p>

ishare.xcodeproj/project.pbxproj

Lines changed: 136 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
3AE7312A2B47052E006F10F7 /* UploadManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AE731292B47052E006F10F7 /* UploadManager.swift */; };
3939
3AEFA5672A9FC15800F485B4 /* PreviewImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AEFA5662A9FC15800F485B4 /* PreviewImage.swift */; };
4040
3AF7F0212B3EF16B000117DD /* HistoryGridView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3AF7F0202B3EF16B000117DD /* HistoryGridView.swift */; };
41-
3AF917C82C4AFE4700D42B77 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 3AF917C72C4AFE4700D42B77 /* Sparkle */; };
41+
3AF917C82C4AFE4700D42B77 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 3AF917C72C4AFE4700D42B77 /* Sparkle */; settings = {ATTRIBUTES = (Weak, ); }; };
4242
3AF9A80F2C4B011A0094B78B /* sharemenuext.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 3AF9A8052C4B011A0094B78B /* sharemenuext.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
4343
/* End PBXBuildFile section */
4444

@@ -591,6 +591,7 @@
591591
ENABLE_PREVIEWS = YES;
592592
ENABLE_TESTABILITY = NO;
593593
ENABLE_TESTING_SEARCH_PATHS = NO;
594+
"EXCLUDED_SOURCE_FILE_NAMES[arch=*]" = Sparkle.framework;
594595
GENERATE_INFOPLIST_FILE = YES;
595596
INFOPLIST_FILE = ishare/Info.plist;
596597
INFOPLIST_KEY_CFBundleDisplayName = ishare;
@@ -613,6 +614,137 @@
613614
};
614615
name = Release;
615616
};
617+
3ACECAB02C4E673A00ECA151 /* GitHub */ = {
618+
isa = XCBuildConfiguration;
619+
baseConfigurationReference = 3AA26D002A7FCBA70004C256 /* Config.xcconfig */;
620+
buildSettings = {
621+
ALWAYS_SEARCH_USER_PATHS = NO;
622+
ASSETCATALOG_COMPILER_APPICON_NAME = "";
623+
"ASSETCATALOG_COMPILER_APPICON_NAME[sdk=*]" = AppIcon;
624+
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
625+
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
626+
ASSETCATALOG_NOTICES = NO;
627+
ASSETCATALOG_WARNINGS = NO;
628+
CLANG_ANALYZER_NONNULL = YES;
629+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
630+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
631+
CLANG_ENABLE_MODULES = YES;
632+
CLANG_ENABLE_OBJC_ARC = YES;
633+
CLANG_ENABLE_OBJC_WEAK = YES;
634+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
635+
CLANG_WARN_BOOL_CONVERSION = YES;
636+
CLANG_WARN_COMMA = YES;
637+
CLANG_WARN_CONSTANT_CONVERSION = YES;
638+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
639+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
640+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
641+
CLANG_WARN_EMPTY_BODY = YES;
642+
CLANG_WARN_ENUM_CONVERSION = YES;
643+
CLANG_WARN_INFINITE_RECURSION = YES;
644+
CLANG_WARN_INT_CONVERSION = YES;
645+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
646+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
647+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
648+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
649+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
650+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
651+
CLANG_WARN_STRICT_PROTOTYPES = YES;
652+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
653+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
654+
CLANG_WARN_UNREACHABLE_CODE = YES;
655+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
656+
COPY_PHASE_STRIP = NO;
657+
DEAD_CODE_STRIPPING = YES;
658+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
659+
ENABLE_NS_ASSERTIONS = NO;
660+
ENABLE_STRICT_OBJC_MSGSEND = YES;
661+
ENABLE_TESTABILITY = YES;
662+
ENABLE_USER_SCRIPT_SANDBOXING = YES;
663+
GCC_C_LANGUAGE_STANDARD = gnu11;
664+
GCC_NO_COMMON_BLOCKS = YES;
665+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
666+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
667+
GCC_WARN_UNDECLARED_SELECTOR = YES;
668+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
669+
GCC_WARN_UNUSED_FUNCTION = YES;
670+
GCC_WARN_UNUSED_VARIABLE = YES;
671+
MACOSX_DEPLOYMENT_TARGET = 13.3;
672+
MTL_ENABLE_DEBUG_INFO = NO;
673+
MTL_FAST_MATH = YES;
674+
SDKROOT = macosx;
675+
SWIFT_COMPILATION_MODE = wholemodule;
676+
SWIFT_OPTIMIZATION_LEVEL = "-O";
677+
};
678+
name = GitHub;
679+
};
680+
3ACECAB12C4E673A00ECA151 /* GitHub */ = {
681+
isa = XCBuildConfiguration;
682+
buildSettings = {
683+
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
684+
CODE_SIGN_ENTITLEMENTS = ishare/ishare.entitlements;
685+
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
686+
CODE_SIGN_STYLE = Automatic;
687+
COMBINE_HIDPI_IMAGES = YES;
688+
CURRENT_PROJECT_VERSION = "${BUILD_NUMBER}";
689+
DEAD_CODE_STRIPPING = YES;
690+
DEVELOPMENT_ASSET_PATHS = "";
691+
DEVELOPMENT_TEAM = L988J7YMK5;
692+
ENABLE_HARDENED_RUNTIME = YES;
693+
ENABLE_PREVIEWS = YES;
694+
ENABLE_TESTABILITY = NO;
695+
ENABLE_TESTING_SEARCH_PATHS = NO;
696+
GENERATE_INFOPLIST_FILE = YES;
697+
INFOPLIST_FILE = ishare/Info.plist;
698+
INFOPLIST_KEY_CFBundleDisplayName = ishare;
699+
INFOPLIST_KEY_LSApplicationCategoryType = "public.app-category.utilities";
700+
INFOPLIST_KEY_LSSupportsOpeningDocumentsInPlace = YES;
701+
INFOPLIST_KEY_LSUIElement = YES;
702+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
703+
LD_RUNPATH_SEARCH_PATHS = (
704+
"$(inherited)",
705+
"@executable_path/../Frameworks",
706+
);
707+
MACOSX_DEPLOYMENT_TARGET = 15.0;
708+
MARKETING_VERSION = "${VERSION}";
709+
PRODUCT_BUNDLE_IDENTIFIER = dev.adrian.ishare;
710+
PRODUCT_NAME = "$(TARGET_NAME)";
711+
SDKROOT = macosx;
712+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "";
713+
SWIFT_EMIT_LOC_STRINGS = YES;
714+
SWIFT_VERSION = 5.0;
715+
};
716+
name = GitHub;
717+
};
718+
3ACECAB22C4E673A00ECA151 /* GitHub */ = {
719+
isa = XCBuildConfiguration;
720+
buildSettings = {
721+
CODE_SIGN_ENTITLEMENTS = sharemenuext/sharemenuext.entitlements;
722+
CODE_SIGN_STYLE = Automatic;
723+
COMBINE_HIDPI_IMAGES = YES;
724+
CURRENT_PROJECT_VERSION = "$(BUILD_NUMBER)";
725+
DEVELOPMENT_TEAM = L988J7YMK5;
726+
ENABLE_HARDENED_RUNTIME = YES;
727+
GCC_C_LANGUAGE_STANDARD = gnu17;
728+
GENERATE_INFOPLIST_FILE = YES;
729+
INFOPLIST_FILE = sharemenuext/Info.plist;
730+
INFOPLIST_KEY_CFBundleDisplayName = ishare;
731+
INFOPLIST_KEY_NSHumanReadableCopyright = "";
732+
LD_RUNPATH_SEARCH_PATHS = (
733+
"$(inherited)",
734+
"@executable_path/../Frameworks",
735+
"@executable_path/../../../../Frameworks",
736+
);
737+
LOCALIZATION_PREFERS_STRING_CATALOGS = YES;
738+
MACOSX_DEPLOYMENT_TARGET = 15.0;
739+
MARKETING_VERSION = "$(VERSION)";
740+
PRODUCT_BUNDLE_IDENTIFIER = dev.adrian.ishare.sharemenuext;
741+
PRODUCT_NAME = "$(TARGET_NAME)";
742+
SKIP_INSTALL = YES;
743+
SWIFT_EMIT_LOC_STRINGS = YES;
744+
SWIFT_VERSION = 5.0;
745+
};
746+
name = GitHub;
747+
};
616748
3AF9A8102C4B011A0094B78B /* Debug */ = {
617749
isa = XCBuildConfiguration;
618750
buildSettings = {
@@ -682,6 +814,7 @@
682814
buildConfigurations = (
683815
3A9A9FF72A5C84B5007BA5C9 /* Debug */,
684816
3A9A9FF82A5C84B5007BA5C9 /* Release */,
817+
3ACECAB02C4E673A00ECA151 /* GitHub */,
685818
);
686819
defaultConfigurationIsVisible = 0;
687820
defaultConfigurationName = Release;
@@ -691,6 +824,7 @@
691824
buildConfigurations = (
692825
3A9A9FFA2A5C84B5007BA5C9 /* Debug */,
693826
3A9A9FFB2A5C84B5007BA5C9 /* Release */,
827+
3ACECAB12C4E673A00ECA151 /* GitHub */,
694828
);
695829
defaultConfigurationIsVisible = 0;
696830
defaultConfigurationName = Release;
@@ -700,6 +834,7 @@
700834
buildConfigurations = (
701835
3AF9A8102C4B011A0094B78B /* Debug */,
702836
3AF9A8112C4B011A0094B78B /* Release */,
837+
3ACECAB22C4E673A00ECA151 /* GitHub */,
703838
);
704839
defaultConfigurationIsVisible = 0;
705840
defaultConfigurationName = Release;

ishare.xcodeproj/xcuserdata/adrian.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<dict>
55
<key>SchemeUserState</key>
66
<dict>
7+
<key>GitHub.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>1</integer>
11+
</dict>
712
<key>Playground (Playground) 1.xcscheme</key>
813
<dict>
914
<key>isShown</key>
@@ -33,7 +38,7 @@
3338
<key>sharemenuext.xcscheme_^#shared#^_</key>
3439
<dict>
3540
<key>orderHint</key>
36-
<integer>3</integer>
41+
<integer>2</integer>
3742
</dict>
3843
</dict>
3944
<key>SuppressBuildableAutocreation</key>

ishare/App.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Defaults
99
import MenuBarExtraAccess
1010
import SwiftUI
1111

12-
#if NOT_APP_STORE
12+
#if GITHUB_RELEASE
1313
import Sparkle
1414
#endif
1515

@@ -38,7 +38,7 @@ struct ishare: App {
3838
}
3939
}
4040

41-
#if NOT_APP_STORE
41+
#if GITHUB_RELEASE
4242
class AppDelegate: NSObject, NSApplicationDelegate, SPUUpdaterDelegate {
4343
private(set) static var shared: AppDelegate! = nil
4444
var recordGif = false

ishare/Info.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
<string>https://isharemac.app/appcast.xml</string>
4343
<key>SUPublicEDKey</key>
4444
<string>iehPcJsCkc5hgiz6Ehb3X4USID60fQbIAFLNfWhA+44=</string>
45+
<key> SUEnableInstallerLauncherService</key>
46+
<true/>
4547
<key>UTExportedTypeDeclarations</key>
4648
<array>
4749
<dict>

ishare/Views/MainMenuView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import ScreenCaptureKit
1111
import SettingsAccess
1212
import SwiftUI
1313
import UniformTypeIdentifiers
14-
#if NOT_APP_STORE
14+
#if GITHUB_RELEASE
1515
import Sparkle
1616
#endif
1717

@@ -294,7 +294,7 @@ struct MainMenuView: View {
294294
}
295295
.keyboardShortcut("a")
296296

297-
#if NOT_APP_STORE
297+
#if GITHUB_RELEASE
298298
Button {
299299
NSWorkspace.shared.open(URL(string: "https://github.com/sponsors/castdrian")!)
300300
} label: {

ishare/ishare.entitlements

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
<dict>
55
<key>com.apple.developer.icloud-container-identifiers</key>
66
<array/>
7+
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
8+
<array>
9+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spks</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spki</string>
11+
</array>
712
<key>com.apple.developer.ubiquity-kvstore-identifier</key>
813
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
914
<key>com.apple.security.app-sandbox</key>

0 commit comments

Comments
 (0)