mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-08-04 08:41:04 +00:00
fix encoding on build files
This commit is contained in:
parent
90fc16e77c
commit
6f2608d664
1526
.gitignore
vendored
1526
.gitignore
vendored
File diff suppressed because it is too large
Load diff
22
appveyor.yml
22
appveyor.yml
|
@ -1,11 +1,11 @@
|
||||||
i m a g e : V i s u a l S t u d i o 2 0 1 7
|
image: Visual Studio 2017
|
||||||
i n i t :
|
init:
|
||||||
- g i t c o n f i g - - g l o b a l c o r e . a u t o c r l f i n p u t
|
- git config --global core.autocrlf input
|
||||||
b u i l d _ s c r i p t :
|
build_script:
|
||||||
- c m d : b u i l d . c m d N u G e t
|
- cmd: build.cmd NuGet
|
||||||
- c m d : . p a k e t \ p a k e t . e x e i n s t a l l
|
- cmd: .paket\paket.exe install
|
||||||
- c m d : g i t d i f f - - e x i t - c o d e
|
- cmd: git diff --exit-code
|
||||||
t e s t : o f f
|
test: off
|
||||||
v e r s i o n : 0 . 0 . 1 . { b u i l d }
|
version: 0.0.1.{build}
|
||||||
a r t i f a c t s :
|
artifacts:
|
||||||
- p a t h : ' b i n \ * . n u p k g '
|
- path: 'bin\*.nupkg'
|
||||||
|
|
56
build.cmd
56
build.cmd
|
@ -1,28 +1,28 @@
|
||||||
@ e c h o o f f
|
@echo off
|
||||||
c l s
|
cls
|
||||||
|
|
||||||
. p a k e t \ p a k e t . b o o t s t r a p p e r . e x e
|
.paket\paket.bootstrapper.exe
|
||||||
i f e r r o r l e v e l 1 (
|
if errorlevel 1 (
|
||||||
e x i t / b % e r r o r l e v e l %
|
exit /b %errorlevel%
|
||||||
)
|
)
|
||||||
|
|
||||||
. p a k e t \ p a k e t . e x e r e s t o r e
|
.paket\paket.exe restore
|
||||||
i f e r r o r l e v e l 1 (
|
if errorlevel 1 (
|
||||||
e x i t / b % e r r o r l e v e l %
|
exit /b %errorlevel%
|
||||||
)
|
)
|
||||||
|
|
||||||
I F N O T E X I S T b u i l d . f s x (
|
IF NOT EXIST build.fsx (
|
||||||
. p a k e t \ p a k e t . e x e u p d a t e
|
.paket\paket.exe update
|
||||||
p a c k a g e s \ F A K E \ t o o l s \ F A K E . e x e i n i t . f s x
|
packages\FAKE\tools\FAKE.exe init.fsx
|
||||||
)
|
)
|
||||||
|
|
||||||
S E T B u i l d T a r g e t =
|
SET BuildTarget=
|
||||||
i f " % B u i l d R u n n e r % " = = " M y G e t " (
|
if "%BuildRunner%" == "MyGet" (
|
||||||
S E T B u i l d T a r g e t = N u G e t
|
SET BuildTarget=NuGet
|
||||||
|
|
||||||
: : R e p l a c e t h e e x i s t i n g r e l e a s e n o t e s f i l e w i t h o n e f o r t h i s b u i l d o n l y
|
:: Replace the existing release notes file with one for this build only
|
||||||
e c h o # # # % P a c k a g e V e r s i o n % > R E L E A S E _ N O T E S . m d
|
echo ### %PackageVersion% > RELEASE_NOTES.md
|
||||||
e c h o * g i t b u i l d > > R E L E A S E _ N O T E S . m d
|
echo * git build >> RELEASE_NOTES.md
|
||||||
)
|
)
|
||||||
|
|
||||||
p a c k a g e s \ F A K E \ t o o l s \ F A K E . e x e b u i l d . f s x % * % B u i l d T a r g e t %
|
packages\FAKE\tools\FAKE.exe build.fsx %* %BuildTarget%
|
||||||
|
|
72
build.sh
72
build.sh
|
@ -1,36 +1,36 @@
|
||||||
# ! / u s r / b i n / e n v b a s h
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
s e t - e u
|
set -eu
|
||||||
s e t - o p i p e f a i l
|
set -o pipefail
|
||||||
|
|
||||||
c d ` d i r n a m e $ 0 `
|
cd `dirname $0`
|
||||||
|
|
||||||
F S I A R G S = " "
|
FSIARGS=""
|
||||||
O S = $ { O S : - " u n k n o w n " }
|
OS=${OS:-"unknown"}
|
||||||
i f [ [ " $ O S " ! = " W i n d o w s _ N T " ] ]
|
if [[ "$OS" != "Windows_NT" ]]
|
||||||
t h e n
|
then
|
||||||
F S I A R G S = " - - f s i a r g s - d : M O N O "
|
FSIARGS="--fsiargs -d:MONO"
|
||||||
f i
|
fi
|
||||||
|
|
||||||
f u n c t i o n r u n ( ) {
|
function run() {
|
||||||
i f [ [ " $ O S " ! = " W i n d o w s _ N T " ] ]
|
if [[ "$OS" != "Windows_NT" ]]
|
||||||
t h e n
|
then
|
||||||
m o n o " $ @ "
|
mono "$@"
|
||||||
e l s e
|
else
|
||||||
" $ @ "
|
"$@"
|
||||||
f i
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
r u n . p a k e t / p a k e t . b o o t s t r a p p e r . e x e
|
run .paket/paket.bootstrapper.exe
|
||||||
|
|
||||||
i f [ [ " $ O S " ! = " W i n d o w s _ N T " ] ] & &
|
if [[ "$OS" != "Windows_NT" ]] &&
|
||||||
[ ! - e ~ / . c o n f i g / . m o n o / c e r t s ]
|
[ ! -e ~/.config/.mono/certs ]
|
||||||
t h e n
|
then
|
||||||
m o z r o o t s - - i m p o r t - - s y n c - - q u i e t
|
mozroots --import --sync --quiet
|
||||||
f i
|
fi
|
||||||
|
|
||||||
r u n . p a k e t / p a k e t . e x e r e s t o r e
|
run .paket/paket.exe restore
|
||||||
|
|
||||||
[ ! - e b u i l d . f s x ] & & r u n . p a k e t / p a k e t . e x e u p d a t e
|
[ ! -e build.fsx ] && run .paket/paket.exe update
|
||||||
[ ! - e b u i l d . f s x ] & & r u n p a c k a g e s / F A K E / t o o l s / F A K E . e x e i n i t . f s x
|
[ ! -e build.fsx ] && run packages/FAKE/tools/FAKE.exe init.fsx
|
||||||
r u n p a c k a g e s / F A K E / t o o l s / F A K E . e x e " $ @ " $ F S I A R G S b u i l d . f s x
|
run packages/FAKE/tools/FAKE.exe "$@" $FSIARGS build.fsx
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue