Skip to content

Commit

Permalink
Update test.4dm
Browse files Browse the repository at this point in the history
  • Loading branch information
miyako committed Mar 19, 2024
1 parent f7c6cc3 commit 3d56077
Showing 1 changed file with 34 additions and 20 deletions.
54 changes: 34 additions & 20 deletions buildapp/Project/Sources/Methods/test.4dm
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

0 comments on commit 3d56077

Please sign in to comment.