mirror of
https://github.com/scratchfoundation/scratch-link.git
synced 2024-11-15 03:15:04 -05:00
build: copy Xcode and SDK info from extension into app
This commit is contained in:
parent
afd2ec197a
commit
8d76f03b20
2 changed files with 8 additions and 2 deletions
|
@ -16,8 +16,6 @@
|
|||
<string>APPL</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
<string>${AuthorCopyright:HtmlEncode}</string>
|
||||
<key>NSPrincipalClass</key>
|
||||
<string>NSApplication</string>
|
||||
<key>XSAppIconAssets</key>
|
||||
|
|
|
@ -140,6 +140,14 @@
|
|||
</ItemGroup>
|
||||
<Copy SourceFiles="@(SafariHelperFiles)" DestinationFolder="$(AppBundleDir)/Contents/PlugIns/$(SafariHelperBundleName)/%(RecursiveDir)" />
|
||||
</Target>
|
||||
<Target Name="UpdateBuildPlatformInfo" AfterTargets="EmbedSafariHelper">
|
||||
<!--
|
||||
These values are usually injected by Xcode and are required by TestFlight.
|
||||
Most of the advice I've found suggests hard-coding them to values that are known to work.
|
||||
I'd rather copy the true values from the Xcode-built app extension...
|
||||
-->
|
||||
<Exec Command="for KEY in DTPlatformBuild DTPlatformName DTPlatformVersion DTSDKBuild DTSDKName DTXcode DTXcodeBuild NSHumanReadableCopyright; do plutil -replace $KEY -string "`plutil -extract $KEY raw '$(SafariHelperSrcPath)Contents/Info.plist'`" '$(AppBundleDir)/Contents/Info.plist'; done" />
|
||||
</Target>
|
||||
<Target Name="EmbedProvisioningProfile" BeforeTargets="_CompileToNative">
|
||||
<Copy SourceFiles="$(SolutionDir)fastlane/output/Direct_edu.mit.scratch.scratch-link.provisionprofile" DestinationFiles="$(AppBundleDir)/Contents/embedded.provisionprofile" Condition=" '$(Configuration)|$(Platform)' == 'Release_DevID|AnyCPU' " />
|
||||
<Copy SourceFiles="$(SolutionDir)fastlane/output/AppStore_edu.mit.scratch.scratch-link.provisionprofile" DestinationFiles="$(AppBundleDir)/Contents/embedded.provisionprofile" Condition=" '$(Configuration)|$(Platform)' == 'Release_MAS|AnyCPU' " />
|
||||
|
|
Loading…
Reference in a new issue