Electron-250

Updated the bundle file
Added "http" prefix validation
This commit is contained in:
Kiran Niranjan 2017-12-27 16:25:40 +05:30 committed by Kiran Niranjan
parent 1388c835ef
commit 193a4c126d
6 changed files with 16 additions and 15 deletions

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>BuildMachineOSBuild</key> <key>BuildMachineOSBuild</key>
<string>17B48</string> <string>16G1036</string>
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>en</string> <string>en</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
@ -27,17 +27,17 @@
<key>DTCompiler</key> <key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string> <string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key> <key>DTPlatformBuild</key>
<string>9B55</string> <string>8E3004b</string>
<key>DTPlatformVersion</key> <key>DTPlatformVersion</key>
<string>GM</string> <string>GM</string>
<key>DTSDKBuild</key> <key>DTSDKBuild</key>
<string>17B41</string> <string>16E185</string>
<key>DTSDKName</key> <key>DTSDKName</key>
<string>macosx10.13</string> <string>macosx10.12</string>
<key>DTXcode</key> <key>DTXcode</key>
<string>0910</string> <string>0833</string>
<key>DTXcodeBuild</key> <key>DTXcodeBuild</key>
<string>9B55</string> <string>8E3004b</string>
<key>InstallerSectionTitle</key> <key>InstallerSectionTitle</key>
<string>Pod Settings</string> <string>Pod Settings</string>
<key>NSHumanReadableCopyright</key> <key>NSHumanReadableCopyright</key>

View File

@ -6,7 +6,7 @@
<dict> <dict>
<key>Resources/Base.lproj/MyInstallerPane.nib</key> <key>Resources/Base.lproj/MyInstallerPane.nib</key>
<data> <data>
GZWN47BPj6b6mD6MnSVH/Qn0m3s= 4+CUZ1pazjwZ3nhbwM+NddoYZ1k=
</data> </data>
<key>Resources/InstallerSections.plist</key> <key>Resources/InstallerSections.plist</key>
<data> <data>
@ -37,11 +37,11 @@
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
GZWN47BPj6b6mD6MnSVH/Qn0m3s= 4+CUZ1pazjwZ3nhbwM+NddoYZ1k=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
cJ/kr1HEozYL0YeZriWDtnOL1NEd22vHzH5WGp1T3hk= 1zIxJqDs3dAZH36I2+CHfZtMpD5NB6xVDsGcWEQ1P2A=
</data> </data>
</dict> </dict>
<key>Resources/InstallerSections.plist</key> <key>Resources/InstallerSections.plist</key>

View File

@ -97,7 +97,7 @@
TargetAttributes = { TargetAttributes = {
3A10EBCE1ED4336D0083702F = { 3A10EBCE1ED4336D0083702F = {
CreatedOnToolsVersion = 8.3.2; CreatedOnToolsVersion = 8.3.2;
DevelopmentTeam = 2CWJ37D7FB; DevelopmentTeam = NG92SF5D2E;
ProvisioningStyle = Automatic; ProvisioningStyle = Automatic;
}; };
}; };
@ -279,7 +279,7 @@
buildSettings = { buildSettings = {
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 2CWJ37D7FB; DEVELOPMENT_TEAM = NG92SF5D2E;
INFOPLIST_FILE = SymphonySettingsPlugin/Info.plist; INFOPLIST_FILE = SymphonySettingsPlugin/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Bundles"; INSTALL_PATH = "$(HOME)/Library/Bundles";
MACOSX_DEPLOYMENT_TARGET = 10.7; MACOSX_DEPLOYMENT_TARGET = 10.7;
@ -295,7 +295,7 @@
buildSettings = { buildSettings = {
CODE_SIGN_IDENTITY = "Mac Developer"; CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES; COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 2CWJ37D7FB; DEVELOPMENT_TEAM = NG92SF5D2E;
INFOPLIST_FILE = SymphonySettingsPlugin/Info.plist; INFOPLIST_FILE = SymphonySettingsPlugin/Info.plist;
INSTALL_PATH = "$(HOME)/Library/Bundles"; INSTALL_PATH = "$(HOME)/Library/Bundles";
MACOSX_DEPLOYMENT_TARGET = 10.7; MACOSX_DEPLOYMENT_TARGET = 10.7;

View File

@ -24,9 +24,10 @@
NSString *podUrl = [_podUrlTextBox stringValue]; NSString *podUrl = [_podUrlTextBox stringValue];
// Check if the url contains a protocol, if not, prepend https to it // Check if the url contains a protocol, if not, prepend https to it
NSString *prefix = @"https://"; NSString *prefix1 = @"https://";
if (![podUrl hasPrefix:prefix]) { NSString *prefix2 = @"http://";
podUrl = [prefix stringByAppendingString:podUrl]; if (![podUrl hasPrefix:prefix1] && ![podUrl hasPrefix:prefix2]) {
podUrl = [prefix1 stringByAppendingString:podUrl];
[_podUrlTextBox setStringValue:podUrl]; [_podUrlTextBox setStringValue:podUrl];
} }