Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
trudyhood committed Feb 4, 2024
2 parents 4f8432d + 0d1a47d commit b4f9cdf
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions Pub/Core/PublishAndroidApp.ps1
Expand Up @@ -46,18 +46,18 @@ Write-Host "*** Creating $module_packageFileName ..." -BackgroundColor Blue -For
$appIconXmlNode.SetAttribute("android:drawable", "@mipmap/$background");
$appIconXmlDoc.save($appIconXml);

# ------------- aab
# ------------- apk
if ($apk)
{
$outputPath = Join-Path $projectDir "bin/Release-$distribution/";
$signedPacakgeFile = Join-Path $outputPath "$packageId-Signed.apk"

if (-not $noclean) { & $msbuild $projectFile /p:Configuration=Release /t:Clean /p:OutputPath=$outputPath /verbosity:$msverbosity; }
dotnet build $projectFile -c Release /t:SignAndroidPackage /p:Version=$versionParam /p:OutputPath=$outputPath /p:AndroidPackageFormat="apk" /verbosity:$msverbosity `
if (-not $noclean) { & $msbuild $projectFile /p:Configuration=Release /t:Clean /p:OutputPath=$outputPath /verbosity:$msverbosity; }
dotnet build $projectFile -c Release /t:SignAndroidPackage /p:Version=$versionParam /p:OutputPath=$outputPath /p:AndroidPackageFormat="apk" /verbosity:$msverbosity `
/p:AndroidSigningKeyStore=$keystore /p:AndroidSigningKeyAlias=$keystoreAlias /p:AndroidSigningStorePass=$keystorePass `
/p:ApplicationId=$packageId `
/p:JarsignerTimestampAuthorityUrl="https://freetsa.org/tsr";

# publish info
$json = @{
Version = $versionParam;
Expand All @@ -69,7 +69,7 @@ if ($apk)
DeprecatedVersion = "$deprecatedVersion";
NotificationDelay = "03.00:00:00";
};
$json | ConvertTo-Json | Out-File "$module_infoFile" -Encoding ASCII;
$json | ConvertTo-Json | Out-File $module_infoFile -Encoding ASCII;
}

# ------------- aab
Expand Down Expand Up @@ -99,11 +99,12 @@ else
$appIconXmlNode.SetAttribute("android:drawable", "@mipmap/appicon_background_web");
$appIconXmlDoc.save($appIconXml);

# copy to solution ouput
Copy-Item -path $signedPacakgeFile -Destination "$moduleDir/$module_packageFileName" -Force
# copy to module
Copy-Item -path $signedPacakgeFile -Destination $module_packageFile -Force

if ($isLatest)
{
Copy-Item -path $signedPacakgeFile -Destination "$moduleDirLatest/$module_packageFileName" -Force -Recurse;
Copy-Item -path "$moduleDir/*" -Destination "$moduleDirLatest/" -Force -Recurse;
}

# report version
Expand Down

0 comments on commit b4f9cdf

Please sign in to comment.