Просмотр исходного кода

Android build: Clean assets folder before building package

Otherwise deleted files from the project remain in the built .apk archive.
Üstün Ergenoglu 12 лет назад
Родитель
Сommit
72d59c69d1
1 измененных файлов с 4 добавлено и 3 удалено
  1. 4 3
      template/android/template.build.xml

+ 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.