-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,8 @@ node_modules | |
/build | ||
|
||
# docker-compose prefabs | ||
/docker-compose | ||
/docker-compose | ||
|
||
/client/dist | ||
|
||
/dist |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/node_modules | ||
/dist | ||
/private |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: Iron Harvest Benchmark Maps | ||
version: 1.0.1 | ||
description: Grid Maps from the Iron Harvest Pathfinding Benchmark | ||
maps: "./content/maps" | ||
port: 8220 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
#!/bin/bash | ||
|
||
rm -rf dist | ||
|
||
# Build | ||
|
||
npx --yes vite build | ||
|
||
# Copy files | ||
|
||
mkdir -p dist/content | ||
cp -r content dist | ||
cp -r adapter.config.yaml dist | ||
|
||
# Make executables | ||
|
||
npx --yes pkg \ | ||
--out-path dist \ | ||
--compress GZip \ | ||
--target node18-windows,node18-linux \ | ||
dist/main.js | ||
|
||
# Compress executables | ||
|
||
gzexe dist/main-linux | ||
rm dist/main-linux~ | ||
|
||
# Add metadata to Windows executable | ||
|
||
npx --yes resedit-cli \ | ||
--in dist/main-win.exe \ | ||
--out dist/main-win.exe \ | ||
--icon "1,icon.ico" \ | ||
--product-name "Waypoint" \ | ||
--product-version "0.1.0.0" \ | ||
--file-version "0.1.0.0" \ | ||
--file-description "Waypoint Adapter Server" | ||
|
||
# Sign Windows executable | ||
|
||
if which osslsigncode >/dev/null; then | ||
if ! test -f "private/cert.p12"; then | ||
mkdir -p private | ||
openssl req -x509 \ | ||
-newkey rsa:2048 \ | ||
-keyout private/key.pem \ | ||
-out private/cert.pem \ | ||
-nodes | ||
openssl pkcs12 -export \ | ||
-out private/cert.p12 \ | ||
-inkey private/key.pem \ | ||
-in private/cert.pem | ||
fi | ||
osslsigncode sign -pkcs12 private/cert.p12 \ | ||
-n "Waypoint Adapter Server" \ | ||
-i "https://github.com/path-visualiser" \ | ||
-in dist/main-win.exe \ | ||
-out dist/main-win-signed.exe | ||
rm dist/main-win.exe | ||
mv dist/main-win-signed.exe dist/main-win.exe | ||
fi | ||
|
||
rm dist/main.js | ||
|
||
mv dist/main-win.exe dist/adapter-win.exe | ||
mv dist/main-linux dist/adapter-linux |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.