Skip to content

Commit

Permalink
ready for release
Browse files Browse the repository at this point in the history
  • Loading branch information
wkgcass authored and wkgcass committed Mar 14, 2017
1 parent c1d8aef commit f94b453
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 24 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ clone the repository, and run

./build.py

You will get a shell scripts (`latte` or `latte.bat`). The shell scripts can help you run the `repl`.
You will get a shell scripts. The shell scripts can help you run the `repl`.

>The build script does not support windows. Please follow the order (latte-[class-recorder | compiler | gradle-plugin | library | build]) to run `gradle clean latteBuild` in each directory, then extract `build/distributions/latte-${version}.zip` in module `latte-build`, the shell script is in the `bin` directory.

run:

Expand Down Expand Up @@ -239,7 +242,9 @@ clone这个仓库,然后执行

./build.py

你将会获取一个shell脚本 (`latte``latte.bat`), shell脚本可以快捷地开启`repl`.
你将会获取一个shell脚本, shell脚本可以快捷地开启`repl`.

>构建脚本不支持windows,请按latte-[class-recorder | compiler | gradle-plugin | library | build]顺序依次进入目录执行`gradle clean latteBuild`,并解压`latte-build`模块的`build/distributions/latte-${version}.zip`,其中的bin目录为shell脚本。
执行:

Expand Down
23 changes: 1 addition & 22 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
DEPLOY_USER = ''
DEPLOY_PASS = ''

OS = ''

JAVA_MIN_VERSION = '1.6'
GRADLE_MIN_VERSION = '2.12'
PACK_ZIP_DIR = 'latte-build/build/distributions/'
Expand Down Expand Up @@ -101,18 +99,10 @@ def check():
versionFile.close()
log('--- current version is [%s] ---' % (version))

# os
system = platform.system()
log('--- current os is [%s] ---' % (system))
global OS
OS = system

return True

def execute(cmd):
exportStr = 'export'
if OS == 'windows':
exportStr = 'set'
env = {}
env['BUILD_ACTION'] = ACTION
if DEPLOY_USER and DEPLOY_PASS:
Expand All @@ -133,10 +123,6 @@ def build():
return False
return True

def winLink(script):
# TODO windows link
return True

def unixLink(script):
# some file system do not support `ln`
# so we create a new shell script
Expand Down Expand Up @@ -166,15 +152,8 @@ def scripts():

# link the scripts
script = 'build/' + zipF[0:-4] + '/bin/latte'
system = platform.system()

linkMethod = None
if system == 'windows':
linkMethod = winLink
else:
linkMethod = unixLink

if linkMethod(script):
if unixLink(script):
return True
else:
log('Create shortcut script failed')
Expand Down

0 comments on commit f94b453

Please sign in to comment.