-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,35 @@ | ||
//%attributes = {} | ||
var $buildSettingsFile : 4D:C1709.File | ||
$buildSettingsFile:=File:C1566(Build application settings file:K5:60) | ||
|
||
var $buildApp : cs:C1710.BuildApp | ||
|
||
$buildApp:=cs:C1710.BuildApp.new($buildSettingsFile) | ||
|
||
If (Is macOS:C1572) | ||
$buildApp.findCertificates("name == :1 and kind == :2"; "@miyako@"; "Developer ID Application") | ||
$BuildApp.SignApplication.MacSignature:=True:C214 | ||
$BuildApp.AdHocSign:=False:C215 | ||
End if | ||
|
||
If (True:C214) | ||
$BuildApp.Versioning.Common.CommonVersion:="1.0.0" | ||
$BuildApp.Versioning.Common.CommonCopyright:="©︎K.MIYAKO" | ||
$BuildApp.Versioning.Common.CommonCompanyName:="com.4d.miyako" | ||
End if | ||
|
||
$buildApp.editor() | ||
If (Get application info:C1599.headless) | ||
|
||
$stdErr:="Unit tests passed" | ||
|
||
LOG EVENT:C667(Into system standard outputs:K38:9; $stdErr; Error message:K38:3) | ||
|
||
If (Application type:C494#6) | ||
QUIT 4D:C291 | ||
End if | ||
|
||
Else | ||
|
||
var $buildSettingsFile : 4D:C1709.File | ||
$buildSettingsFile:=File:C1566(Build application settings file:K5:60) | ||
|
||
var $buildApp : cs:C1710.BuildApp | ||
|
||
$buildApp:=cs:C1710.BuildApp.new($buildSettingsFile) | ||
|
||
If (Is macOS:C1572) | ||
$buildApp.findCertificates("name == :1 and kind == :2"; "@miyako@"; "Developer ID Application") | ||
$BuildApp.SignApplication.MacSignature:=True:C214 | ||
$BuildApp.AdHocSign:=False:C215 | ||
End if | ||
|
||
If (True:C214) | ||
$BuildApp.Versioning.Common.CommonVersion:="1.0.0" | ||
$BuildApp.Versioning.Common.CommonCopyright:="©︎K.MIYAKO" | ||
$BuildApp.Versioning.Common.CommonCompanyName:="com.4d.miyako" | ||
End if | ||
|
||
$buildApp.editor() | ||
|
||
End if |