More than 1 year has passed since last update.
build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="********">
    <!-- 
    ////////////////////////////////////////////////////////////////////////
        Desktop AIR パッケージ ANTテンプレート
    ////////////////////////////////////////////////////////////////////////
     -->
    <property name="ProjectPath" value="プロジェクトのパス"></property>

    <property name="adt" value="flexSDKのパス/bin/adt"></property>

    <property name="SWF_NAME" value="****"></property>


    <!-- output folder -->
    <property name="OUTPUT_FOLDER_PATH" value="${ProjectPath}/bin/"></property>

    <!-- discripter -->
    <property name="APP_XML" value="${ProjectPath}/bin/****-app.xml">
    </property>

    <!-- certificate -->
    <property name="CERT" value="${ProjectPath}/cert/****.p12"></property>
    <property name="PASS" value="****"></property>



    <target name="[package]">
            <!-- [air package] -->
            <exec executable="${adt}">
                <arg line="-package" />
                <arg line="-storetype" />
                <arg line="pkcs12" />
                <arg line="-keystore" />
                <arg line="${CERT}" />
                <arg line="-storepass" />
                <arg line="${PASS}" />
                <arg line="-target" />
                <arg line="air" />
                <arg line="${OUTPUT_FOLDER_PATH}/${SWF_NAME}.air" />
                <arg line="${APP_XML}" />
                <arg line="-C" />
                <arg line="${ProjectPath}/bin/" />
                <arg line="${SWF_NAME}.swf" />
            </exec>
    </target>


</project>
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.