Browse Source

Merge pull request #1060 from rgngl/androidBuildClean

Android build: Clean assets folder before building package
Sean Paul Taylor 12 năm trước cách đây
mục cha
commit
a166bfe153

+ 4 - 3
template/android/template.build.xml

@@ -62,9 +62,10 @@
        If this is not done in place, override ${out.dex.input.absolute.dir} */
        If this is not done in place, override ${out.dex.input.absolute.dir} */
        -->
        -->
     <target name="-post-compile">
     <target name="-post-compile">
-        <copy todir="assets/res">
-            <fileset dir="../res" />
-        </copy>
+    	<delete dir="assets/res"/>
+        <copy todir="assets/res">
+            <fileset dir="../res" />
+        </copy>
     </target>
     </target>
 
 
     <!-- Import the actual build file.
     <!-- Import the actual build file.