I want to publish an app created with libGDX (HTML/JS publishing). Here are the steps I am doing. Right Click on the Project -> Google -> Gwt Compile -> Compile. After the compilation there is no .html file in the /war directory . There are 3 folders assets,html,WEB-INF . What am I doing wrong?
\$\begingroup\$
\$\endgroup\$
6
-
1\$\begingroup\$ Relevant: WAR (File format) \$\endgroup\$Alexandre Desbiens– Alexandre Desbiens2015-07-10 15:32:08 +00:00Commented Jul 10, 2015 at 15:32
-
\$\begingroup\$ ok and how can I run it? \$\endgroup\$Vahe Muradyan– Vahe Muradyan2015-07-10 15:35:56 +00:00Commented Jul 10, 2015 at 15:35
-
\$\begingroup\$ Do you have a .war file? If yes, you will need a web server that can run it (mainly a java server, like Apache Tomcat). Have you tried looking for other compile target options? Maybe you can have something else than a .war. \$\endgroup\$Alexandre Desbiens– Alexandre Desbiens2015-07-10 15:42:19 +00:00Commented Jul 10, 2015 at 15:42
-
\$\begingroup\$ no I don`t have .war file , I have a folder named war and it has 3 subfolders assets,html,WEB-INF \$\endgroup\$Vahe Muradyan– Vahe Muradyan2015-07-10 15:49:44 +00:00Commented Jul 10, 2015 at 15:49
-
1\$\begingroup\$ @AlexandreDesbiens the requirements of a web server for HTML/JS deployment of a libGDX project depends on whether or not server-side operations are being used in the code. See Deploying to HTML/JS for more information. \$\endgroup\$driima– driima2015-07-10 20:08:54 +00:00Commented Jul 10, 2015 at 20:08
|
Show 1 more comment
1 Answer
\$\begingroup\$
\$\endgroup\$
1
On Android Studio, on the heeader menu go to: View->Tool Windows->Gradle
There you will see all you subprojects. open up the 'other', right click on the task 'dist' and click 'run'.
This will create the distribution file in your HTML->build->dist folder. You can copy those file to your root folder (or link your root folder to this location)
-
\$\begingroup\$ He never said he uses android studio \$\endgroup\$Bálint– Bálint2016-11-10 08:56:46 +00:00Commented Nov 10, 2016 at 8:56