Commit 70ef77f4 authored by Daniel Dreibrodt's avatar Daniel Dreibrodt

Moved whole build process to ANT

parent a4bc77fc
[Files]
Source: ICE_JNIRegistry.dll; DestDir: {app}
Source: share/ICE_JNIRegistry.dll; DestDir: {app}
Source: LICENSE.TXT; DestDir: {app}
Source: README.TXT; DestDir: {app}; Flags: isreadme
Source: VLCSkinEditor.exe; DestDir: {app}
Source: VLCSkinEditor.jar; DestDir: {app}
Source: share/VLCSkinEditor.exe; DestDir: {app}
Source: build/VLCSkinEditor.jar; DestDir: {app}
Source: lang/English.txt; DestDir: {app}/lang
Source: lang/english/*.txt; DestDir: {app}/lang/english/
[Icons]
Name: {group}\VLC Skin Editor; Filename: {app}\VLCSkinEditor.exe; WorkingDir: {app}; IconFilename: {app}\VLCSkinEditor.exe; IconIndex: 0
Name: {group}\Uninstall VLC Skin Editor; Filename: {uninstallexe}
Name: {group}\Online Help; Filename: http://www.videolan.org/vlc/skinedhlp/
[Setup]
OutputBaseFilename=VLCSkinEditor_0_7_setup
VersionInfoVersion=0.7
OutputBaseFilename=VLCSkinEditor_setup
VersionInfoVersion=0.7.5
VersionInfoCompany=VideoLAN
VersionInfoDescription=Setup for the VLC Skin Editor
VersionInfoCopyright=2008 VideoLAN
AppCopyright=2008 VideoLAN Team
AppName=VLC Skin Editor
AppVerName=0.7
LicenseFile=E:\Documents and Settings\Daniel\Eigene Dateien\java\skin-designer\LICENSE.TXT
AppVerName=0.7.5
LicenseFile=LICENSE.TXT
PrivilegesRequired=poweruser
DefaultDirName={pf}\VideoLAN\VLC Skin Editor
DirExistsWarning=no
......@@ -25,20 +27,20 @@ DefaultGroupName=VideoLAN\VLC Skin Editor
AppendDefaultGroupName=false
AppPublisher=VideoLAN
AppPublisherURL=http://www.videolan.org
AppSupportURL=http://www.videolan.org/vlc/skineditor.php
AppUpdatesURL=http://www.videolan.org/vlc/skineditor.php
AppSupportURL=http://www.videolan.org/vlc/skineditor.html
AppUpdatesURL=http://www.videolan.org/vlc/skineditor.html
AppVersion=0.7
AppID={{977C5080-EA08-435D-8901-233A506E1651}
AppReadmeFile={app}\README.TXT
UninstallDisplayIcon={app}\VLCSkinEditor.exe
UninstallDisplayName=VLC Skin Editor
ChangesAssociations=true
OutputDir=.
OutputDir=dist
[Registry]
Root: HKCR; Subkey: .vlt; ValueType: string; ValueData: VLCSkinFile; Flags: uninsdeletevalue
Root: HKCR; Subkey: VLCSkinFile; ValueType: string; ValueData: Compressed VLC Skin; Flags: uninsdeletevalue
Root: HKCR; Subkey: VLCSkinFile\DefaultIcon; ValueType: string; ValueData: """{app}\VLCSkinEditor.exe,2"""
Root: HKCR; Subkey: VLCSkinFile\shell\open\command; ValueType: string; ValueName: ; ValueData: """{app}\VLCSkinEditor.exe"" ""%1"""
Root: HKCR; Subkey: VLCSkinFile\shell\open; ValueType: string; ValueData: Edit with VLC Skin Editor
[_ISToolPreCompile]
Name: E:\Documents and Settings\Daniel\Eigene Dateien\java\skin-designer\build.bat; Parameters:
[InstallDelete]
Name: {app}/VLCSkinEditor.cfg; Type: files
rd /S /Q build
md build
cd src
javac -O -d ../build vlcskineditor/Main.java
cd ..
md build\vlcskineditor\icons
copy src\vlcskineditor\icons build\vlcskineditor\icons\
echo Main-Class: vlcskineditor.Main>manifest_no_nb
jar cvfm VLCSkinEditor.jar manifest_no_nb -C build .
del manifest_no_nb
#! /bin/sh
mkdir -p build/vlcskineditor/icons
cd src/
`javac -O -d ../build vlcskineditor/Main.java`
cd ..
cp src/vlcskineditor/icons/* build/vlcskineditor/icons
echo "Main-Class: vlcskineditor.Main" > manifest_no_nb
jar cvfm VLCSkinEditor.jar manifest_no_nb -C build .
rm -f manifest_no_nb
......@@ -2,33 +2,42 @@
<project name="skin-designer" default="dist" basedir=".">
<property name="srcdir" value="src" />
<property name="builddir" value="build" />
<property name="src" value="src" />
<property name="build" value="build" />
<property name="dist" value="dist" />
<property name="lang" value="lang" />
<property name="share" value="share" />
<property file="build.properties" />
<condition property="isWindows">
<os family="windows"/>
</condition>
<target name="bootstrap">
<mkdir dir="${builddir}" />
<mkdir dir="${build}" />
<mkdir dir="${dist}" />
</target>
<target name="compile" depends="bootstrap">
<mkdir dir="${builddir}/classes" />
<javac srcdir="${srcdir}"
destdir="${builddir}/classes"
<mkdir dir="${build}/classes" />
<javac srcdir="${src}"
destdir="${build}/classes"
target="1.6"
source="1.6"
fork="true" />
</target>
<target name="copy-resources" depends="bootstrap">
<mkdir dir="${builddir}/resources/vlcskineditor/icons" />
<copy todir="${builddir}/resources/vlcskineditor/icons">
<fileset dir="${srcdir}/vlcskineditor/icons" />
<mkdir dir="${build}/resources/vlcskineditor/icons" />
<copy todir="${build}/resources/vlcskineditor/icons">
<fileset dir="${src}/vlcskineditor/icons" />
</copy>
</target>
<target name="jar" depends="compile, copy-resources">
<jar destfile="${builddir}/${ant.project.name}.jar">
<fileset dir="${builddir}/classes" />
<fileset dir="${builddir}/resources" />
<jar destfile="${build}/VLCSkinEditor.jar">
<fileset dir="${build}/classes" />
<fileset dir="${build}/resources" />
<manifest>
<attribute name="Main-Class"
value="vlcskineditor.Main" />
......@@ -39,7 +48,72 @@
<target name="dist" depends="jar" />
<target name="clean">
<delete dir="${builddir}" />
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
<target name="package-update" depends="jar">
<echo file=".updated" />
<zip destfile="${dist}/VLCSkinEditor_update.zip">
<fileset dir="${build}/" includes="VLCSkinEditor.jar" />
<fileset dir="${share}/" includes="VLCSkinEditor.exe
ICE_JNIRegistry.dll" />
<fileset dir="." includes=".updated
README.TXT
LICENSE.TXT
${lang}/*.txt
${lang}/*/*.txt" />
</zip>
<delete file=".updated" />
</target>
<target name="package-win32" depends="jar">
<zip destfile="${dist}/VLCSkinEditor_w32.zip">
<fileset dir="${build}/" includes="VLCSkinEditor.jar"/>
<fileset dir="${share}/" includes="VLCSkinEditor.exe
ICE_JNIRegistry.dll" />
<fileset dir="." includes="README.TXT
LICENSE.TXT
${lang}/*.txt
${lang}/*/*.txt"/>
</zip>
</target>
<target name="get-is-dir" unless="is.dir">
<input
message="Please enter the directory where InnoSetup is installed:"
addproperty="is.dir.read"
/>
<available property="is.exists" file="${is.dir.read}/iscc.exe"/>
<fail unless="is.exists"/>
<propertyfile
file="build.properties"
comment="Build configuration">
<entry key="is.dir" value="${is.dir.read}"/>
</propertyfile>
</target>
<target name="installer-win32" depends="jar,get-is-dir" if="isWindows">
<exec executable="${is.dir}/iscc.exe">
<arg line="SkinEditorInstaller.iss"/>
</exec>
</target>
<target name="package-unix" depends="jar">
<tar destfile="${dist}/VLCSkinEditor_unix.tar">
<fileset dir="${build}/" includes="VLCSkinEditor.jar" />
<fileset dir="${share}/" includes="VLCSkinEditor" />
<fileset dir="." includes="README.TXT
LICENSE.TXT
${lang}/*.txt
${lang}/*/*.txt" />
</tar>
<gzip destfile="${dist}/VLCSkinEditor_unix.tar.gz" src="${dist}/VLCSkinEditor_unix.tar" />
<delete file="${dist}/VLCSkinEditor_unix.tar" />
</target>
<target name="package-all" depends="package-update,
package-win32,
package-unix,
installer-win32" />
</project>
\ No newline at end of file
tar cfvz VLCSkinEditor_release.tar.gz VLCSkinEditor VLCSkinEditor.jar LICENSE.TXT README.TXT icon_png.png
\ No newline at end of file
jar cM README.TXT LICENSE.TXT VLCSkinEditor.jar VLCSkinEditor.exe ICE_JNIRegistry.dll > VLCSkinEditor_release.zip
\ No newline at end of file
#! /bin/sh
jar cM README.TXT LICENSE.TXT VLCSkinEditor.jar VLCSkinEditor.exe ICE_JNIRegistry.dll > VLCSkinEditor_release.zip
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment