Skip to content

Commit a4dd30c

Browse files
committed
Automatically publish releases
1 parent 8c50cd1 commit a4dd30c

File tree

5 files changed

+66
-16
lines changed

5 files changed

+66
-16
lines changed

.gitignore

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,31 @@
1-
*.suo
2-
*.vscode
3-
*.DS_Store
1+
# Unity generated
2+
Temp/
3+
Obj/
4+
Build
5+
Library/
6+
ProjectSettings/
47

5-
# Ignore Unity-specific csproj files.
8+
# IDE / Tooling
9+
.vs/
10+
.vscode/
11+
/*.userprefs
612
/*.csproj
7-
/*.sln
8-
9-
Library/
10-
Temp/
11-
obj/
13+
/*.pidb
14+
/*.suo
15+
/*.sln*
16+
/*.user
17+
/*.unityproj
18+
/*.booproj
19+
/.idea*/
1220

13-
create_release_dlls.cmd
21+
# OS generated
22+
.DS_Store*
23+
._*
24+
.Spotlight-V100
25+
.Trashes
26+
ehthumbs.db
27+
Thumbs.db
28+
Desktop.ini
1429

1530
Assets/Editor
1631
Assets/Editor.meta

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
language: objective-c
2-
install:
3-
- ./Scripts/install.sh
1+
sudo: false
2+
language: csharp
3+
before_install:
4+
- git submodule update --init --recursive
45
script:
5-
- ./Scripts/build.sh
6+
- ./Automation/compile.sh
67
deploy:
78
provider: releases
89
api_key:
910
secure: PF8i4NWyg01RYa9ThMTviLpl96HYDDd7AHWKytg9XWKMy0T8pzhqL3NnjwDBk1QhcG69MaGSL1tU8BtxJPJQrBKGUtMHwZqb33oaaLNZ9lAbcm1J/oKywpCkBE+1eTCodwlYOl3U9htzacIhXt60HTO1bPVOboq0iBOdt5YGJ0Q+5D2CeBVr7QblVf7RbHGHmM28WArmmsCfEgyiQ+e8od9xyxijPSW5o6Jkg4/HYBUFV69G1TWIL61nbZLqlhrMu+YflAiL4Wt3/UyLKTICU5DP8LuBnabZYqKoXBxiR+262wytyM/jrLJ3CQQiU+0a0D5rxQMJiqdj2tGgHLqws/Xw+hiOkbolEZZGCugTVJOvkHeU92KuNd3aUtUkM2qURPnT2uhs/2oNa22JDR3rsI40kRttbTSFaO7cobOm1tFXGTAhkvCbBJvdOaQRIglrXxSTCjvBBctCD4oyaL1H3McXo2fUKpsl9HVh/BoTeze8dPZmIluPqxHBVoMXZ/qhXe4jDZBy/PSsruDKysXP6sxEKV3yvX9AmI5mlGPy+90vIl+IdTr6hXkMdJtbWJmNoSYS4iOSUFpq6jBQPpr7MkeywM8mOrj+9h1YrInCT5Jp1B7tGbbmJOFi54o/F4Ioxd5H0sI1YqN5OnFa4JqJ3hENjsoLPEfbwD+xIPKhsqI=
1011
file:
11-
- Output/FullSerializer-DLLs.unitypackage
12-
- Output/FullSerializer-Source.unitypackage
12+
- Output/FullSerializer-DLLs.zip
13+
- Output/FullSerializer-Source.zip
1314
on:
1415
repo: jacobdufault/fullserializer
1516
tags: true

Automation/UnityEngine.UI.dll

218 KB
Binary file not shown.

Automation/UnityEngine.dll

1.15 MB
Binary file not shown.

Automation/compile.sh

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ROOT_DIR=$(pwd)
2+
WORK_DIR="Output"
3+
SOURCE_DIR="$ROOT_DIR/Assets/FullSerializer"
4+
UNITY_DLL_FOLDER="$ROOT_DIR/Automation"
5+
6+
# Output DLL names.
7+
OUTPUT_NAME=FullSerializer
8+
9+
mkdir "$WORK_DIR"
10+
cd "$WORK_DIR"
11+
12+
# Fetch sources to use.
13+
ALL_SOURCES=$(find $SOURCE_DIR -name \*.cs | grep -v 'Editor/')
14+
15+
# Common compilation settings.
16+
COMPILER="mcs
17+
/lib:$UNITY_DLL_FOLDER
18+
/reference:UnityEngine.dll
19+
/reference:UnityEngine.UI.dll
20+
/nowarn:1591
21+
/target:library /debug /sdk:2"
22+
23+
# Compile runtime and editor DLLs.
24+
$COMPILER \
25+
/out:"$OUTPUT_NAME.dll" /doc:"$OUTPUT_NAME.xml" \
26+
$ALL_SOURCES
27+
28+
zip -r "$ROOT_DIR/FullSerializer-DLLs.zip" $(find . -type f)
29+
30+
cd $ROOT_DIR/Assets
31+
zip -r "$ROOT_DIR/FullSerializer-Source.zip" $(find FullSerializer -name \*.cs)
32+
33+
cd $ROOT_DIR
34+
rm -rf "$WORK_DIR"

0 commit comments

Comments
 (0)