Skip to content

Commit 3122bb6

Browse files
committed
First commit
0 parents  commit 3122bb6

20 files changed

+267
-0
lines changed

.github/workflows/publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
publish:
9+
name: ''
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Clone repository
15+
uses: actions/checkout@v3
16+
17+
- name: Install Deno
18+
uses: denoland/setup-deno@v1
19+
with:
20+
deno-version: v1.x
21+
22+
- name: Set Versions
23+
uses: actions/github-script@v4
24+
id: set_version
25+
with:
26+
script: |
27+
const tag = context.ref.substring(10).replace('v', '')
28+
core.setOutput('tag', tag)
29+
30+
- name: Replace config.ts version
31+
uses: richardrigutins/replace-in-files@v2
32+
with:
33+
files: 'config.ts'
34+
search-text: '__VERSION__'
35+
replacement-text: ${{ steps.set_version.outputs.tag }}
36+
37+
- name: Upload binaries to release
38+
uses: svenstaro/upload-release-action@v2
39+
with:
40+
repo_token: ${{ secrets.GITHUB_TOKEN }}
41+
file: build/*
42+
tag: ${{ github.ref }}
43+
overwrite: true
44+
file_glob: true

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.idea
2+
node_modules
3+
build

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"arrowParens": "avoid",
5+
"useTabs": true
6+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
https://github.com/Leokuma/wincompile

config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const config = {
2+
version: '__VERSION__',
3+
};

deno.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"tasks": {
3+
"start": "deno run --allow-read --allow-write --allow-run ./mod.ts",
4+
5+
"compile": "deno compile --allow-read --allow-write --allow-run --no-check",
6+
"compile:win": "deno task compile --target=x86_64-pc-windows-msvc --output ./build/void_win ./mod.ts",
7+
"compile:linux": "deno task compile --target=x86_64-unknown-linux-gnu --output ./build/void_linux ./mod.ts",
8+
"compile:mac_x64": "deno task compile --target=x86_64-apple-darwin --output ./build/void_darwin_x64 ./mod.ts",
9+
"compile:mac_m1": "deno task compile --target=aarch64-apple-darwin --output ./build/void_darwin_m1 ./mod.ts",
10+
11+
"compile:all": "(deno task compile:win) & (deno task compile:linux) & (deno task compile:mac_x64) & (deno task compile:mac_m1)"
12+
},
13+
"imports": {
14+
"deno/": "https://deno.land/[email protected]/"
15+
}
16+
}

deno.lock

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mod.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
export * from './src/main.ts'

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"devDependencies": {
3+
"prettier": "^3.0.0"
4+
}
5+
}

server.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# file version
2+
version: 1
3+
# game build version with patch
4+
build: 1.2.3
5+
name: My server name
6+
# (optional)
7+
description: Welcome to my server!
8+
# (optional) server website
9+
website: example.com
10+
# (optional) default: false
11+
public: false
12+
# (optional) default: true
13+
sessions: false
14+
# (optional) default: []
15+
mods:
16+
# mod name [reference from github]
17+
- name: pagoru/potato
18+
# (optional) default: last version matching the build
19+
version: 1.2.3

0 commit comments

Comments
 (0)