Skip to content
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

Gh Actions Build #2

Closed
wants to merge 105 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
b7562a5
Offline Builds initial draft
Shchvova Feb 27, 2020
846b426
Fixing hardcoded values, tvOS
Shchvova Mar 4, 2020
d8a8098
first prototype
Shchvova Mar 10, 2020
41919a8
Another attempt
Shchvova Mar 10, 2020
54a32ea
exec tvos
Shchvova Mar 10, 2020
e41ed46
Trying to add valid certificates
Shchvova Mar 11, 2020
dc6f565
disabling tvOS for now
Shchvova Mar 11, 2020
44cc499
debug info
Shchvova Mar 11, 2020
34fca66
correct secret spelling
Shchvova Mar 11, 2020
c310146
correct secret spelling
Shchvova Mar 11, 2020
c37143d
added tvos cert link
Shchvova Mar 11, 2020
739d308
All certs
Shchvova Mar 11, 2020
8969821
More keychain unlocking
Shchvova Mar 11, 2020
2c8bc75
Merged branch 'shchvova/OfflineBuilds' into GHActionBuild
Shchvova Mar 12, 2020
334072e
Caching processed source code in artifact
Shchvova Mar 12, 2020
077cd88
Reorganizing code
Shchvova Mar 12, 2020
cfa3054
Reorganizing pt2
Shchvova Mar 12, 2020
d86ffe4
ignoring output
Shchvova Mar 12, 2020
5a96627
Trying Local paths
Shchvova Mar 12, 2020
05d9eac
More debug
Shchvova Mar 12, 2020
ef36329
More debug
Shchvova Mar 12, 2020
2ffa2f3
More debug
Shchvova Mar 12, 2020
e39017a
More debug
Shchvova Mar 12, 2020
1be270b
More debug
Shchvova Mar 12, 2020
e91c8bf
More debug
Shchvova Mar 12, 2020
d6328be
Fixing native build, prettying up source archive
Shchvova Mar 12, 2020
f64548a
Merge branch 'master' into GHActionBuild
Shchvova Mar 13, 2020
b151c1f
First attempt at building macOS simulator
Shchvova Mar 13, 2020
1a39daf
Merge branch 'master' into GHActionBuild
Shchvova Mar 13, 2020
289466c
Minor fixes
Shchvova Mar 13, 2020
8ac5bf0
Minor fixes
Shchvova Mar 13, 2020
16090eb
Minor fixes
Shchvova Mar 13, 2020
409c320
aggressive caching for saner debug times
Shchvova Mar 13, 2020
68e8608
typo
Shchvova Mar 13, 2020
561b9ec
Fixing artifact handling
Shchvova Mar 13, 2020
8f78f4c
All the certs
Shchvova Mar 13, 2020
cdea229
More magic required
Shchvova Mar 13, 2020
3bfeec3
Reverting all the things
Shchvova Mar 13, 2020
23624ff
Trying to unlock superpower of sqlite3
Shchvova Mar 13, 2020
2c98880
Real magic coming in
Shchvova Mar 13, 2020
0b0e0d7
not very nice DMG, but hopefully working
Shchvova Mar 13, 2020
7e64116
Disabling debug caching
Shchvova Mar 13, 2020
35b0912
Cool new ways of creating dmgs
Shchvova Mar 14, 2020
143b552
fail fast
Shchvova Mar 14, 2020
9cf7568
With the power of debug!
Shchvova Mar 14, 2020
5b667de
Better build and notarization
Shchvova Mar 14, 2020
cb7a2cf
Attempt in HTML5 on Github
Shchvova Mar 15, 2020
74754b4
fixing notarized workflow
Shchvova Mar 15, 2020
cb4fc70
another notarization fix
Shchvova Mar 15, 2020
1a6e1f6
more fixes for notarization, change secret not to contain spaces
Shchvova Mar 15, 2020
6fd4411
attempt at linux templates
Shchvova Mar 15, 2020
64d4bf3
needs runs-on
Shchvova Mar 15, 2020
94d1f33
linux
Shchvova Mar 15, 2020
5c85563
trying to quick-fix the build
Shchvova Mar 15, 2020
ca0d9b5
Disabling caching. It seems we're done here.
Shchvova Mar 15, 2020
b872f9c
well push is needed for branch build it seems
Shchvova Mar 15, 2020
8ab97d5
Pretty build stuff
Shchvova Mar 16, 2020
6138201
better naming for artifacts
Shchvova Mar 16, 2020
d4b0711
First attempt at windows
Shchvova Mar 26, 2020
68d6bc8
trying to fix tar with 7z
Shchvova Mar 27, 2020
0839f40
Update build.yml
Shchvova Mar 27, 2020
fd3af68
Update build.yml
Shchvova Mar 27, 2020
d270950
Update build.yml
Shchvova Mar 27, 2020
7a38bf4
Update build.yml
Shchvova Mar 27, 2020
c23b294
Update build.yml
Shchvova Mar 27, 2020
8dca41b
Update build.yml
Shchvova Mar 27, 2020
aad34ab
Update build.yml
Shchvova Mar 27, 2020
d85a179
fixing win32 configuration name
Shchvova Mar 27, 2020
0861b43
Fixing build at least for debug
Shchvova Mar 28, 2020
5fb6197
Fixing signing bat to work on VS 2019
Shchvova Mar 29, 2020
c33aab2
Trying to add docs to build installer
Shchvova Mar 29, 2020
4327ddc
Update build.yml
Shchvova Mar 29, 2020
1a5854a
Update build.yml
Shchvova Mar 29, 2020
9ef7d74
Update build.yml
Shchvova Mar 29, 2020
4f14ff5
Update build.yml
Shchvova Mar 29, 2020
004dee1
Trying to fix windows Release
Shchvova Mar 29, 2020
08aec9f
Integrating Github releases
Shchvova Mar 30, 2020
f341a70
Fixing syntax
Shchvova Mar 30, 2020
50f90d2
Fixing custom url collector
Shchvova Mar 30, 2020
0ebcf1f
Using Personal Access Token, because Github Token expires too soon
Shchvova Mar 30, 2020
d42e11b
Ignoring iobj and ipdb
Shchvova Mar 31, 2020
f76392a
Disabling CC license check
Shchvova Mar 31, 2020
756f360
Adding Corona Cards and Linux simulator to release
Shchvova Mar 31, 2020
1e9a806
Generating change log
Shchvova Mar 31, 2020
10e7146
Fixing cc android script
Shchvova Mar 31, 2020
0cd9737
Update build.yml
Shchvova Mar 31, 2020
5159f0e
Fixing live server for VS2019
Shchvova Apr 2, 2020
f714c27
Offline builds for Windows first iteration
Shchvova Apr 2, 2020
33c0105
Subrepo status
Shchvova Apr 3, 2020
a841bea
Trying to make Windows Console work
Shchvova Apr 3, 2020
9399dac
Adding plugin table json to the simulator loader
Shchvova Apr 13, 2020
f7b6750
better submodule checkout
Shchvova Apr 14, 2020
d225d1f
Merge branch 'master' into GHActionBuild
Shchvova Apr 19, 2020
44e7892
sim stub plugin collector
Shchvova Apr 21, 2020
992219b
Integrating plugin collector into simulator & native macOS builds
Shchvova Apr 25, 2020
bc5eeb1
Support for macOS Solar2D Directory
Shchvova Apr 27, 2020
0aeae51
windows builds now
Shchvova Apr 30, 2020
c8e0e69
bad include
Shchvova Apr 30, 2020
c4fc6ce
Windows is building
Shchvova May 1, 2020
669c0a4
Rudimentary plugin fetch works on Windows
Shchvova May 1, 2020
21d9f92
removing http methods
Shchvova May 1, 2020
7cf3e94
Changed embedded license rtfs
Shchvova May 1, 2020
b8830fd
trying to fix windows builds
Shchvova May 1, 2020
7659672
Adding artifact purgery
Shchvova May 1, 2020
b22d885
More small fixes
Shchvova May 1, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Offline Builds initial draft
  • Loading branch information
Shchvova committed Feb 27, 2020
commit b7562a5152a9fe9c826e257e3987776adec65e44
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -267,5 +267,6 @@ external/facebook-ios-sdk
external/facebook-android-sdk
plugins/ads-inmobi
plugins/ads-inneractive
tools/buildsys-ios
commit-email.sh
platform/resources/iostemplate
platform/tvos/license.ccdata
384 changes: 121 additions & 263 deletions platform/android/app/build.gradle.kts

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion platform/android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ buildscript {
}
dependencies {
classpath("com.android.tools.build:gradle:3.5.3")
classpath("de.undercouch:gradle-download-task:3.4.3")
classpath("com.beust:klaxon:5.0.1")
}
}
Expand Down
11 changes: 10 additions & 1 deletion platform/iphone/mks3upload
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e
#
# mks3upload
#
Expand Down Expand Up @@ -85,3 +85,12 @@ if [ -d $AS2BACKUP ]
then
mv $AS2BACKUP $ASSETS2
fi

for IOS_VER in template/iphone/*
do
IOS_VER=$(basename "${IOS_VER}")

cp "2100.9999_template_iphone_${IOS_VER}_basic.tar.bz" "../resources/iostemplate/iphoneos_${IOS_VER}.tar.bz"
cp "2100.9999_template_iphone-sim_${IOS_VER}_basic.tar.bz" "../resources/iostemplate/iphonesimulator_${IOS_VER}.tar.bz"

done
29 changes: 17 additions & 12 deletions platform/mac/AndroidAppBuildController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -120,21 +120,26 @@ - (void) showWindow:(id)sender;
{
// Generate a default package id based on the user's email address + the app name
const Rtt::AuthorizationTicket *ticket = [appDelegate ticket];
NSString *username = [NSString stringWithExternalString:ticket->GetUsername()];
NSArray *nameComponents = [username componentsSeparatedByCharactersInSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]];
NSString *tmpPackageName;
if(ticket) {
NSString *username = [NSString stringWithExternalString:ticket->GetUsername()];
NSArray *nameComponents = [username componentsSeparatedByCharactersInSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]];

NSMutableString *tmpPackageName = [[[NSMutableString alloc] init] autorelease];
tmpPackageName = [[[NSMutableString alloc] init] autorelease];

// Reverse the order of the components of the email address and concatenate them together
// separated by periods for something like: com.coronalabs.perry.MyNewApp
for (id component in [nameComponents reverseObjectEnumerator])
{
[tmpPackageName appendString:component];
[tmpPackageName appendString:@"."];
}
// Reverse the order of the components of the email address and concatenate them together
// separated by periods for something like: com.coronalabs.perry.MyNewApp
for (id component in [nameComponents reverseObjectEnumerator])
{
[tmpPackageName appendString:component];
[tmpPackageName appendString:@"."];
}

// Add the appname having replaced any non-alphanumerics with underscores
[tmpPackageName appendString:[[self.appName componentsSeparatedByCharactersInSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]] componentsJoinedByString:@"_"]];
// Add the appname having replaced any non-alphanumerics with underscores
[tmpPackageName appendString:[[self.appName componentsSeparatedByCharactersInSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]] componentsJoinedByString:@"_"]];
} else {
tmpPackageName = [@"com.coronalabs." stringByAppendingString:[[self.appName componentsSeparatedByCharactersInSet:[[NSCharacterSet alphanumericCharacterSet] invertedSet]] componentsJoinedByString:@"_"]];
}

self.androidAppPackage = tmpPackageName;
}
Expand Down
7 changes: 5 additions & 2 deletions platform/mac/AppBuildController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1115,9 +1115,12 @@ - (void) restoreBuildPreferences

- (BOOL) loginSession:(WebServicesSession *)session services:(MacPlatformServices *)services ticket:(const AuthorizationTicket *)ticket message:(NSString **)message
{
Rtt_ASSERT(session);
Rtt_ASSERT(session);
Rtt_ASSERT(services);
Rtt_ASSERT(ticket);

if(!ticket && services) {
return session && session->IsOfflineSession();
}

const char* usr = ticket->GetUsername();
Rtt::String encryptedPassword;
Expand Down
2 changes: 2 additions & 0 deletions platform/mac/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ namespace Rtt
@property (nonatomic, readwrite) BOOL respondsToBackKey;
@property (nonatomic, readonly, getter=analytics) Rtt::SimulatorAnalytics *fAnalytics;

+(BOOL)offlineModeAllowed;

-(BOOL)isRunning;
-(IBAction)showHelp:(id)sender;
-(void)signin;
Expand Down
32 changes: 24 additions & 8 deletions platform/mac/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ @implementation AppDelegate
@synthesize _currentLocation;
@synthesize fAnalytics;

+(BOOL)offlineModeAllowed {
static BOOL allowed = [[NSUserDefaults standardUserDefaults] boolForKey:@"allowOfflineMode"];
return allowed;
}

-(id)init
{
self = [super init];
Expand Down Expand Up @@ -855,16 +860,25 @@ -(void)signin

if ( ! authorizer.Initialize(true) )
{
NSRunAlertPanel( @"Could not authorize this computer to use Corona Simulator", @"An Internet connection is required to authorize first time use.", nil, nil, nil );

[[NSApplication sharedApplication] terminate:self];
if(![AppDelegate offlineModeAllowed])
{

return;
NSRunAlertPanel( @"Could not authorize this computer to use Corona Simulator", @"An Internet connection is required to authorize first time use.", nil, nil, nil );

[[NSApplication sharedApplication] terminate:self];

return;
}
}

ticket = authorizer.GetTicket();

if(!ticket && [AppDelegate offlineModeAllowed]) {
authorizedToLaunch = YES;
return;
}

if ( ! authorizer.VerifyTicket() )
if ( ticket && ! authorizer.VerifyTicket() )
{
NSRunAlertPanel( @"Could not launch Corona Simulator", @"Invalid registration.", nil, nil, nil );

Expand Down Expand Up @@ -1587,6 +1601,7 @@ -(NSArray*)GetRecentDocuments
// I believe this is generally safe enough because awakeFromNib gets called before applicationWillFinishLaunching.
-(void)applicationWillFinishLaunching:(NSNotification*)aNotification
{

// Set up the ticket subsystem
fServices = new Rtt::MacPlatformServices( *fConsolePlatform );
fAuthorizerDelegate = new Rtt::MacAuthorizationDelegate;
Expand Down Expand Up @@ -1848,7 +1863,7 @@ - (void)applicationWillResignActive:(NSNotification *)aNotification
static bool
IsAppAllowedToRun( const Rtt::AuthorizationTicket* t )
{
return t && t->IsAppAllowedToRun();
return [AppDelegate offlineModeAllowed] || (t && t->IsAppAllowedToRun());
}

-(BOOL)isRunnable
Expand Down Expand Up @@ -2099,7 +2114,7 @@ - (NSString*) preferencesUserName
const Rtt::AuthorizationTicket* ticket = [self ticket];
if ( NULL == ticket )
{
return nil;
return @"<offline user>";
}

const char* label = ticket->GetUsername();
Expand Down Expand Up @@ -2127,7 +2142,7 @@ -(void)deauthorize:(id)sender

// If we're connected to the internet, try to deauth this computer with the server so we don't burn one
// of their (many) authorization slots. We don't bug the user if this doesn't work.
if ( services.IsInternetAvailable() )
if ( services.IsInternetAvailable() && ticket )
{
const char *usr = ticket->GetUsername();
Rtt::String encryptedPassword;
Expand All @@ -2149,6 +2164,7 @@ -(void)deauthorize:(id)sender
services.SetPreference( Authorization::kTicketKey, NULL );
services.SetPreference( Authorization::kSuppressFeedbackKey, NULL );
services.SetPreference( Authorization::kUsernameKey, NULL );
services.SetLibraryPreference( Authorization::kOfflineModeConfirmed, NULL );

if (ticket != NULL)
{
Expand Down
8 changes: 8 additions & 0 deletions platform/mac/CoronaBuilder.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@
C2CF9BA01AE5BFFC00A9A64A /* AndroidValidation.lua in CopyFiles */ = {isa = PBXBuildFile; fileRef = C2C5359D1AE5B8A200BF7A6E /* AndroidValidation.lua */; };
C2F98DF41BB34C4600BDE58B /* XMLRPC.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = C2F98DEC1BB34B8100BDE58B /* XMLRPC.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
C2F98DF51BB34C4C00BDE58B /* XMLRPC.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C2F98DEC1BB34B8100BDE58B /* XMLRPC.framework */; };
F53C329F2404E30900BC2BED /* CoronaBuilderPluginCollector.lua in Sources */ = {isa = PBXBuildFile; fileRef = F53C328E2404E2C000BC2BED /* CoronaBuilderPluginCollector.lua */; };
F547C7F61ED28A2700C4ED92 /* Rtt_DownloadPluginsMain.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F547C7F41ED28A2700C4ED92 /* Rtt_DownloadPluginsMain.cpp */; };
F547C7F71ED28BA600C4ED92 /* BuilderPluginDownloader.lua in Sources */ = {isa = PBXBuildFile; fileRef = F547C7ED1ED289EA00C4ED92 /* BuilderPluginDownloader.lua */; };
F5BEA4B823FFE98200206A6A /* CoronaOfflineiOSPackager.lua in Sources */ = {isa = PBXBuildFile; fileRef = F5BEA4A723FFE97300206A6A /* CoronaOfflineiOSPackager.lua */; };
F5DB5B312113702800EC5CBC /* linuxPackageApp.lua in Sources */ = {isa = PBXBuildFile; fileRef = F5DB5B202113701300EC5CBC /* linuxPackageApp.lua */; };
F5FBD1CE20696145009A9D32 /* Rtt_WebAppPackager.cpp in Sources */ = {isa = PBXBuildFile; fileRef = F5FBD1CC20696145009A9D32 /* Rtt_WebAppPackager.cpp */; };
F5FBD1DB206961A4009A9D32 /* libluasocket.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C221F5231D48156700F45E77 /* libluasocket.a */; };
Expand Down Expand Up @@ -634,9 +636,11 @@
C2F1BAF71EF48EF500D77BD7 /* CoronaShell.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = CoronaShell.xcodeproj; path = CoronaShell/CoronaShell.xcodeproj; sourceTree = "<group>"; };
C2F1BAFD1EF48F2F00D77BD7 /* ratatouille.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = ratatouille.xcodeproj; sourceTree = "<group>"; };
C2F98DE61BB34B8000BDE58B /* XMLRPC.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = XMLRPC.xcodeproj; path = "../../external/osx-xmlrpc/XMLRPC/XMLRPC.xcodeproj"; sourceTree = "<group>"; };
F53C328E2404E2C000BC2BED /* CoronaBuilderPluginCollector.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CoronaBuilderPluginCollector.lua; path = ../resources/CoronaBuilderPluginCollector.lua; sourceTree = "<group>"; };
F547C7ED1ED289EA00C4ED92 /* BuilderPluginDownloader.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = BuilderPluginDownloader.lua; path = ../../tools/CoronaBuilder/BuilderPluginDownloader.lua; sourceTree = "<group>"; };
F547C7F41ED28A2700C4ED92 /* Rtt_DownloadPluginsMain.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Rtt_DownloadPluginsMain.cpp; path = ../../tools/CoronaBuilder/Rtt_DownloadPluginsMain.cpp; sourceTree = "<group>"; };
F547C7F51ED28A2700C4ED92 /* Rtt_DownloadPluginsMain.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Rtt_DownloadPluginsMain.h; path = ../../tools/CoronaBuilder/Rtt_DownloadPluginsMain.h; sourceTree = "<group>"; };
F5BEA4A723FFE97300206A6A /* CoronaOfflineiOSPackager.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = CoronaOfflineiOSPackager.lua; path = ../resources/CoronaOfflineiOSPackager.lua; sourceTree = "<group>"; };
F5DB5B202113701300EC5CBC /* linuxPackageApp.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = linuxPackageApp.lua; path = ../resources/linuxPackageApp.lua; sourceTree = "<group>"; };
F5FBD1CC20696145009A9D32 /* Rtt_WebAppPackager.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = Rtt_WebAppPackager.cpp; path = ../shared/Rtt_WebAppPackager.cpp; sourceTree = "<group>"; };
F5FBD1CD20696145009A9D32 /* Rtt_WebAppPackager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = Rtt_WebAppPackager.h; path = ../shared/Rtt_WebAppPackager.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1105,6 +1109,8 @@
C22BAF751C1B8FBD00EF1795 /* OSXPackageApp.lua */,
C22BAF761C1B8FBD00EF1795 /* tvosPackageApp.lua */,
F5FBD1DE20696201009A9D32 /* webPackageApp.lua */,
F53C328E2404E2C000BC2BED /* CoronaBuilderPluginCollector.lua */,
F5BEA4A723FFE97300206A6A /* CoronaOfflineiOSPackager.lua */,
);
name = Lua;
sourceTree = "<group>";
Expand Down Expand Up @@ -1460,6 +1466,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F53C329F2404E30900BC2BED /* CoronaBuilderPluginCollector.lua in Sources */,
F5BEA4B823FFE98200206A6A /* CoronaOfflineiOSPackager.lua in Sources */,
F5DB5B312113702800EC5CBC /* linuxPackageApp.lua in Sources */,
F5FBD1E020696224009A9D32 /* webPackageApp.lua in Sources */,
C277D3A01EBA4CF900966BA1 /* _CoronaSetup_android.lua in Sources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
Expand All @@ -38,8 +36,8 @@
ReferencedContainer = "container:CoronaBuilder.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -63,28 +61,18 @@
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "plugins"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "download"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "android"
argument = "build"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "/Users/vlad/Projects/main/platform/test/assets2/build.settings"
argument = "--lua"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "--android-build"
argument = "/Users/vlad/Desktop/recepie.lua"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
2 changes: 1 addition & 1 deletion platform/mac/LinuxAppBuildController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ - (IBAction)build:(id)sender
}

const Rtt::AuthorizationTicket *ticket = [appDelegate ticket];
NSString *username = [NSString stringWithExternalString:ticket->GetUsername()];
NSString *username = ticket?[NSString stringWithExternalString:ticket->GetUsername()]:@"anonymous@corona";
const char* identity = [username UTF8String];

bool useStandartResources = (fUseStandartResources.state == NSOnState);
Expand Down
2 changes: 1 addition & 1 deletion platform/mac/OSXAppBuildController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ - (IBAction)build:(id)sender
}

// We don't login to build macOS apps so we output this here
const char* usr = [appDelegate ticket]->GetUsername();
const char* usr = [appDelegate ticket]?[appDelegate ticket]->GetUsername():"anonymous@corona";

Rtt_Log("Building %s app for %s with %s", [self.platformTitle UTF8String], usr, Rtt_STRING_BUILD);

Expand Down
Loading