mock-foundation / moc

A (really) native and powerful macOS and iPadOS Telegram client, optimized for moderating large communities and personal use. Currently in alpha
GNU General Public License v3.0
119 stars 6 forks source link

Use different AppCenter secrets for macOS and iPadOS distributions #148

Closed ggoraa closed 1 year ago

ggoraa commented 1 year ago

Because that info is shared between distributions, they get mixed up, and it starts working not so great to be honest

I need to update the environment setup script to also include an iPadOS-specific AppCenter secret, and then make a computed property for accessing the value, which looks like basically this:

var appCenterSecret: String {
    #if os(macOS)
    macOSAppCenterSecret
    #elseif os(iOS)
    iPadOSAppCenterSecret
    #endif
}