--- /dev/null
+java -jar emulator-manager.jar
{
echo "$SRCDIR"
# ant -buildfile build.xml clean
+ rm $SRCDIR/*.jar
rm -rf $SRCDIR/*.zip
rm -rf $SRCDIR/*.tar.gz
}
# build
build()
{
- ant -buildfile build.xml
+ ant -buildfile build.xml linux-jar
}
# install
install()
{
- if [ "$BUILD_TARGET_OS" = "linux" ]
- then
- BIN_DIR=$SRCDIR/package/emulator-manager.package.linux/data/Emulator
- else
- BIN_DIR=$SRCDIR/package/emulator-manager.package.windows/data/Emulator
- fi
+ BIN_DIR=$SRCDIR/package/emulator-manager.package.linux/data/Emulator
mkdir -p $BIN_DIR/bin
cp emulator-manager.jar $BIN_DIR/bin
+ cp emulator-manager.sh $BIN_DIR/bin/emulator-manager
cp -r lib $BIN_DIR/bin/
}
--- /dev/null
+#!/bin/sh -xe
+# clean
+clean()
+{
+ echo "$SRCDIR"
+# ant -buildfile build.xml clean
+ rm $SRCDIR/*.jar
+ rm -rf $SRCDIR/*.zip
+ rm -rf $SRCDIR/*.tar.gz
+}
+
+# build
+build()
+{
+ ant -buildfile build.xml windows-jar
+}
+
+# install
+install()
+{
+ BIN_DIR=$SRCDIR/package/emulator-manager.package.windows/data/Emulator
+ mkdir -p $BIN_DIR/bin
+
+ cp emulator-manager.jar $BIN_DIR/bin
+ cp emulator-manager.sh $BIN_DIR/bin/emulator-manager.bat
+ cp -r lib $BIN_DIR/bin/
+}
+
+[ "$1" = "clean" ] && clean
+[ "$1" = "build" ] && build
+[ "$1" = "install" ] && install
+
+echo "success"
@ECHO OFF\r
set vtm_shortcut_name=Emulator Manager\r
set execute_path=Emulator\bin\r
-set vtm_execute_file=emulator-manager.exe\r
+set vtm_execute_file=emulator-manager.bat\r
set icon_path=Emulator\skins\icons\r
set vtm_icon_file=vtm.ico\r
\r
set vtm_shortcut_name=Emulator Manager\r
set execute_path=Emulator\bin\r
-set vtm_execute_file=emulator-manager.exe\r
+set vtm_execute_file=emulator-manager.bat\r
set program_path=%INSTALLED_PATH%\%execute_path%\r
ECHO Start menu path=%start_menu_programs_path%\r
echo delete from registry\r
Package: emulator-manager
Version: 1.0.1
OS: windows
-Build-host-os: linux
+Build-host-os: windows
Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
Source: emulator-manager
Description: Tizen Emulator Manager