mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-08 05:58:22 +01:00
Build and run app directly from antOSDK
This commit is contained in:
parent
8643b819fd
commit
1e4c134454
@ -39,6 +39,7 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
|
||||
initWorkspace: () ->
|
||||
me = @
|
||||
@dirty = true
|
||||
@fileview = @find "fileview"
|
||||
div = @find "datarea"
|
||||
@currfile = "Untitled".asFileHandler()
|
||||
@ -328,6 +329,7 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
me = @
|
||||
file.write "text/plain", (d) ->
|
||||
return me.error __("Error saving file {0}", file.basename) if d.error
|
||||
me.dirty = true
|
||||
file.dirty = false
|
||||
file.text = file.basename
|
||||
me.tabarea.update()
|
||||
@ -620,6 +622,7 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
me.copy copylist, "#{me.prjfile.cache.root}/build"
|
||||
.then () ->
|
||||
me.log "INFO", __("Build done")
|
||||
me.dirty = false
|
||||
return new Promise (r, e) -> r()
|
||||
|
||||
run: () ->
|
||||
@ -644,6 +647,7 @@ class AntOSDK extends this.OS.GUI.BaseApplication
|
||||
, "json"
|
||||
|
||||
bnR: () ->
|
||||
return @run() unless @dirty
|
||||
me = @
|
||||
@build().then () ->
|
||||
me.run()
|
||||
|
Loading…
Reference in New Issue
Block a user