Skip to content

Commit

Permalink
Make a .exe for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpaljak committed Apr 11, 2016
1 parent 4c2df86 commit 516c85b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
14 changes: 10 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,37 @@ sudo: false
language: java
jdk:
- oraclejdk8
script: ant
before_script:
- mkdir -p ext
- wget http://iweb.dl.sourceforge.net/project/launch4j/launch4j-3/3.8/launch4j-3.8-linux.tgz
- echo "e0cb0240c91b3ed6ca7bb85743fd09d6d7651cc3671a5fc17f67e57b8f7a80c6 launch4j-3.8-linux.tgz" | sha256sum -c
- tar -C ext -xzf launch4j-3.8-linux.tgz
- ant fetch

script: ant windist
env:
global:
secure: Df5FIHnieDJj8AAwgeAh779Rs+aoJ8e9WQN0ero4OfcJ2Y1G7InBZQIGesfVR1M7EX4Hf0fvmUam9zthdwi4culk+gJeOAMM/wpCqvEUyWDTd78Cr08L7PjNW8RCq5NCYhgvO1j+IzJOA3IR6h8DSS4QGZtJqPYk65ZQ1uRyAGc=
addons:
coverity_scan:
project:
name: martinpaljak/esteidhacker
description: EstEID hacker
notification_email: [email protected]
build_command_prepend:
build_command: ant compile
branch_pattern: coverity
deploy:
provider: releases
file:
- esteid.jar
- esteid-app.jar
- esteid.exe
skip_cleanup: true
on:
tags: true
jdk: oraclejdk8
api-key:
secure: nyJNh410mWIAGdLXRQA6/TFByEjRdxk4i3sXIDBTYD3jcmgEp2BYTSi3gSMaOoNgGl2KH4VgvnT48eJrvZssF39PT4h/36SCmtOfhdWVExwJDbVSY22o24brp7VjbkN2/wAl1qF/yRKEdWF3Xkc3abzpSx27aoRS8nDEvKB5v1M=

cache:
directories:
- lib
- ext
19 changes: 12 additions & 7 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,21 @@
</jar>
<copy file="esteid.jar" todir="capsule"/>
<jar manifest="Manifest.mf" destfile="esteid-app.jar" level="9" basedir="capsule">
<fileset dir="lib"><include name="*.jar"/></fileset>
</jar>
</target>
<target name="cmd" depends="compile" description="generate the local commandline utility">
<jar manifest="Manifest.mf" destfile="esteid.jar" level="9" basedir="build">
<fileset dir="src">
<include name="resources/*.pem"/>
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</jar>
</target>
<!-- Wrap the JAR into .EXE for Windows users -->
<target name="windist" depends="dist" description="package as .exe">
<property name="launch4j.dir" location="ext/launch4j"/>
<taskdef name="launch4j" classname="net.sf.launch4j.ant.Launch4jTask" classpath="${launch4j.dir}/launch4j.jar:${launch4j.dir}/lib/xstream.jar"/>
<launch4j>
<config headerType="console" outfile="esteid.exe" jar="esteid-app.jar" errTitle="EstEID hacker">
<jre minVersion="1.8.0"/>
</config>
</launch4j>
</target>
<!-- Clean the source tree -->
<target name="clean" description="clean up">
<delete dir="build"/>
Expand Down

0 comments on commit 516c85b

Please sign in to comment.