Update appveyor and windows build_win script.

This commit is contained in:
Calvin Rose 2018-12-08 17:10:46 -05:00
parent 0cc3a98aa9
commit 4bcbf65b5b
3 changed files with 19 additions and 14 deletions

View File

@ -159,7 +159,8 @@ clean-natives:
dist: janet-dist.tar.gz
janet-%.tar.gz: $(JANET_TARGET) src/include/janet/janet.h janet.1 $(JANET_LIBRARY)
janet-%.tar.gz: $(JANET_TARGET) src/include/janet/janet.h \
janet.1 LICENSE CONTRIBUTING.md $(JANET_LIBRARY) README.md
tar -czvf $@ $^
clean:

View File

@ -20,6 +20,7 @@ init:
install:
- build_win
- build_win test
- build_win dist
build: off
@ -29,25 +30,16 @@ only_commits:
- src/
artifacts:
- path: janet.exe
name: janet.exe
type: File
- path: janet.def
name: janet.def
type: File
- path: janet.lib
name: janet.lib
type: File
- path: src\include\janet\janet.h
name: janet.h
type: File
- path: dist
name: janet-%APPVEYOR_TAG_NAME%-windows.zip
type: Zip
deploy:
description: 'The Janet Programming Language.'
provider: GitHub
auth_token:
secure: lwEXy09qhj2jSH9s1C/KvCkAUqJSma8phFR+0kbsfUc3rVxpNK5uD3z9Md0SjYRx
artifact: janet.exe
artifact: janet-%APPVEYOR_TAG_NAME%-windows.zip
draft: true
on:
APPVEYOR_REPO_TAG: true

View File

@ -12,6 +12,7 @@
@if "%1"=="help" goto HELP
@if "%1"=="clean" goto CLEAN
@if "%1"=="test" goto TEST
@if "%1"=="dist" goto DIST
@rem Set compile and link options here
@setlocal
@ -88,6 +89,17 @@ for %%f in (test/suite*.janet) do (
@if errorlevel 1 goto :TESTFAIL
)
exit /b 0
@rem Build a dist directory
:DIST
mkdir dist
copy janet.exe dist\janet.exe
copy LICESNE dist\LICENSE
copy README.md dist\README.md
copy janet.lib dist\janet.lib
copy janet.exp dist\janet.exp
copy src\include\janet\janet.h dist\janet.h
:TESTFAIL
@echo.
@echo *******************************************************