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

XamarinHelper - file name not quoted by calling zipalign #1293

Closed
WebDucer opened this issue Jul 6, 2016 · 1 comment
Closed

XamarinHelper - file name not quoted by calling zipalign #1293

WebDucer opened this issue Jul 6, 2016 · 1 comment

Comments

@WebDucer
Copy link

WebDucer commented Jul 6, 2016

Description

The call of jarsigner quote the file names:

jarsigner -sigalg SHA1withRSA -digestalg SHA1 -keystore "C:\Users\er\Documents\Visual Studio 2015\Projects\BuildTest\BuildTestStore" -storepass 123456789 -signedjar "C:\Users\er\Documents\Visual Studio 2015\Projects\BuildTest\Output\BuildTest.Droid-Signed.apk" "C:\Users\er\Documents\Visual Studio 2015\Projects\BuildTest\Output\BuildTest.Droid.apk" BuildTest

The call of zipalign does not:

zipalign -f -v 4 C:\Users\er\Documents\Visual Studio 2015\Projects\BuildTest\Output\BuildTest.Droid-Signed.apk C:\Users\er\Documents\Visual Studio 2015\Projects\BuildTest\Output\BuildTest.Droid-SignedAndAligned.apk

https://github.com/fsharp/FAKE/blob/master/src/app/FakeLib/XamarinHelper.fs#L313

Repro steps

Description "Build Xamarin Android app"
Target "BuildAndroidApp" (fun _ ->
    AndroidPackage (fun p ->
        {p with
            Configuration = "Release"
            ProjectPath = androidProjectPath
            OutputPath = baseOutput
            PackageAbiTargets = AndroidPackageAbiParam.OneApkForAll
        }
    )
    |> AndroidSignAndAlign (fun a ->
        {a with
            KeystorePath =  "BuildTestStore"
            KeystorePassword = "123456789"
            KeystoreAlias = "BuildTest"
        })
    |> (fun p -> trace p.FullName)
)

Expected behavior

Filenames should be quoted also for zipalign.

Actual behavior

Filenames are not quoted.

Known workarounds

Paths without blancs.

Related information

  • Win 10
  • Visual Studio 2015 with Xamarin
@WebDucer
Copy link
Author

WebDucer commented Jul 7, 2016

I'll fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant