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

Implement finalizePackagedApp callback #204

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 14 additions & 0 deletions packager/packager.livecodescript
Expand Up @@ -175,6 +175,8 @@ command packagerPackageApplication pStandaloneStackFilename, pBuildProfile, pSim

_pruneAppArray tAppA, pBuildProfile, tPlatform

_dispatchFinalizeApp pBuildProfile, tPlatform, tAppA, tAppFolder

log "tAppA:" && _printArray(tAppA,,true)

set the itemdelimiter to "/"
Expand Down Expand Up @@ -498,6 +500,18 @@ private command _dispatchFinalizePackagedAssets pBuildProfile, pPlatform, @xAppA
end repeat
end _dispatchFinalizePackagedAssets

private command _dispatchFinalizeApp pBuildProfile, pPlatform, @xAppA, pAppFolder
local tCallbackStacks, tFilename

# Send callbacks
put _packagerCallbackStacks(xAppA, pBuildProfile) into tCallbackStacks
repeat for each line tFilename in tCallbackStacks
log "Dispatching finalizePackagedApp to stack" && tFilename

dispatch "finalizePackagedApp" to stack tFilename with pBuildProfile, pPlatform, xAppA, pAppFolder
put "" into sCallbackStacksA[ tFilename ]
end repeat
end _dispatchFinalizeApp

private command _dispatchPackagingComplete pBuildProfile, @xAppA, pOutputFolder
local tCallbackStacks, tFilename
Expand Down