Files
leanote/bin/run.bat

24 lines
568 B
Batchfile
Raw Normal View History

2015-04-20 19:51:20 +08:00
@echo off
cd..
set SCRIPTPATH=%cd%
: top src directory
2017-07-27 20:00:53 +08:00
set leanotePath="%SCRIPTPATH%\bin\src\github.com\leanote"
2015-04-20 19:51:20 +08:00
2017-07-27 20:00:53 +08:00
if not exist "%leanotePath%" mkdir "%leanotePath%"
2015-04-20 19:51:20 +08:00
: create software link
2017-07-27 20:00:53 +08:00
if exist "%leanotePath%\leanote" del /Q "%leanotePath%\leanote"
mklink /D "%leanotePath%\leanote" %SCRIPTPATH%
2015-04-20 19:51:20 +08:00
: set GOPATH
2015-09-17 18:52:10 +08:00
set GOPATH="%SCRIPTPATH%\bin"
2015-04-20 19:51:20 +08:00
: run
if %processor_architecture%==x86 (
"%SCRIPTPATH%\bin\leanote-windows-386.exe" -importPath github.com/leanote/leanote
) else (
"%SCRIPTPATH%\bin\leanote-windows-amd64.exe" -importPath github.com/leanote/leanote
)