Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Delphi XE8 Android - msbuild command - how to create an apk?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Last Post: Mar 25, 2017 10:08 AM Last Post By: Stiaan Pretorius
MMS Software

Posts: 3
Registered: 8/15/08
Delphi XE8 Android - msbuild command - how to create an apk?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 23, 2016 10:31 AM
Hi,

Using msbuild, I can build my project using the following command:

msbuild MainProj.dproj /p:Configuration=Release;Plat
form=Android /t:build

But I don't know how to get my MainProj.apk file to appear in the sub-directory:

Android\Release\MainProj\bin

I already have my MainProj.deployproj deployment file.

Is it actually possible to create an apk using msbuild?

Regards
Gerry
Stiaan Pretorius

Posts: 24
Registered: 1/2/09
Re: Delphi XE8 Android - msbuild command - how to create an apk?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 25, 2017 10:08 AM   in response to: MMS Software in response to: MMS Software
MMS Software wrote:
Hi,

Using msbuild, I can build my project using the following command:

msbuild MainProj.dproj /p:Configuration=Release;Plat
form=Android /t:build

But I don't know how to get my MainProj.apk file to appear in the sub-directory:

Android\Release\MainProj\bin

I already have my MainProj.deployproj deployment file.

Is it actually possible to create an apk using msbuild?

Regards
Gerry

Hi

Here is my BAT file. You have to have MSBuild installed. (https://www.microsoft.com/en-us/download/details.aspx?id=48159)

@Echo off

call "c:\Program Files (x86)\Embarcadero\Studio\18.0\bin\rsvars.bat"

@SET TARGET=Rebuild
@SET CONFIG=Release

@SET SOURCEDIR=d:\Projects\MyApp
@SET SOURCEFILE=%SOURCEDIR%\MyApp.dproj
@SET BUILDDIR=%SOURCEDIR%\

"c:\Program Files (x86)\MSBuild\12.0\Bin\MSBuild.Exe" %SOURCEFILE% /target:%TARGET%;Deploy /p:platform=Android /p:Config=Debug
IF ERRORLEVEL 1 GOTO errend
copy "%SOURCEDIR%\Build\Android\Debug\MyApp\bin\MyApp" "%SOURCEDIR%\InnoSetup\Output\MyApp.apk"
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02