Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 35 additions & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,6 @@ on:
- "*"

jobs:
release-server:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Compose
uses: docker/setup-buildx-action@v3

- name: Build And Tag Image
run: |
docker compose up --build --force-recreate --remove-orphans -d server
docker tag passeriformub/nukeship:latest passeriformub/nukeship:${{ github.ref_name }}

- name: Publish Docker Image
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Push Docker Image to Docker Hub
run: |
docker push passeriformub/nukeship:${{ github.ref_name }}
docker push passeriformub/nukeship:latest

release-binaries:
strategy:
fail-fast: false
Expand Down Expand Up @@ -61,11 +36,45 @@ jobs:
- name: Generate code
run: go generate ./...

- name: Create binary
- name: Release binary
id: release
uses: passeriform/wails-build-action@main
with:
app-working-directory: pkg/client
build-obfuscate: true
build-name: ${{ matrix.name }}
build-platform: ${{ matrix.platform }}
macos-artifact-name: "NukeShip"

outputs:
release-id: ${{ steps.release.outputs.release-id }}

release-notes:
runs-on: ubuntu-latest
needs: release-binaries
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Prepare release notes
id: prepare
working-directory: ${{ github.workspace }}/scripts
run: |
chmod +x *
echo "RELEASE_NOTES<<EOF" >> $GITHUB_OUTPUT
echo "$(./changelog_gen.sh ${{ github.ref_name }})" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Test Release Notes
run: echo ${{ steps.prepare.outputs.RELEASE_NOTES }}

- name: Update release notes
uses: irongut/editrelease@v1.2.0
with:
id: ${{ needs.release-binaries.outputs.release-id }}
token: ${{ github.token }}
replacebody: true
name: ${{ github.ref_name }}
body: ${{ steps.prepare.outputs.RELEASE_NOTES }}
13 changes: 9 additions & 4 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,15 @@ linters-settings:
- google\.golang\.org/grpc/keepalive\.ClientParameters
- google\.golang\.org/grpc/keepalive\.EnforcementPolicy
- google\.golang\.org/grpc/keepalive\.ServerParameters
- github\.com/wailsapp/wails/v2/pkg/options\.App
- github\.com/wailsapp/wails/v2/pkg/options/mac\.Options
- github\.com/wailsapp/wails/v2/pkg/options/linux\.Options
- github\.com/wailsapp/wails/v2/pkg/options/linux\.Options
- github\.com/wailsapp/wails/v3/pkg/application\.Options
- github\.com/wailsapp/wails/v3/pkg/application\.LinuxOptions
- github\.com/wailsapp/wails/v3/pkg/application\.MacOptions
- github\.com/wailsapp/wails/v3/pkg/application\.WindowsOptions
- github\.com/wailsapp/wails/v3/pkg/application\.AssetOptions
- github\.com/wailsapp/wails/v3/pkg/application\.WebviewWindowOptions
- github\.com/wailsapp/wails/v3/pkg/application\.LinuxWindow
- github\.com/wailsapp/wails/v3/pkg/application\.MacWindow
- github\.com/wailsapp/wails/v3/pkg/application\.WindowsWindow
- github\.com/necmettindev/randomstring\.GenerationOptions
gci:
custom-order: true
Expand Down
31 changes: 30 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
"cSpell.words": [
"3dtransforms",
"abice",
"appicon",
"appimage",
"APPL",
"archlinux",
"asasalint",
"asmv3",
"assetdir",
Expand All @@ -10,14 +14,19 @@
"AWAITINGREADY",
"Bhardwaj",
"bidichk",
"binaryname",
"buildvcs",
"buildx",
"bytebufferpool",
"caarlos",
"Colour",
"containedctx",
"copyloopvar",
"dbus",
"decorder",
"depguard",
"desktopfile",
"dotdesktop",
"dylib",
"errcheck",
"errchkjson",
Expand All @@ -29,6 +38,7 @@
"fieldalignment",
"Frameless",
"Fugaz",
"gcflags",
"genproto",
"GOARCH",
"gochecknoglobals",
Expand All @@ -47,6 +57,7 @@
"gosod",
"govet",
"Gurpartap",
"icns",
"iface",
"importas",
"INGAME",
Expand All @@ -59,26 +70,37 @@
"labstack",
"ldflags",
"leaanthony",
"lerp",
"libwebkit",
"macfilename",
"mattn",
"mcli",
"mustparse",
"necmettindev",
"nestif",
"nfpm",
"nilnil",
"njsproj",
"nlreturn",
"nolint",
"nsis",
"ntvs",
"nukeship",
"Orbitron",
"outputdir",
"outputfile",
"outputfilename",
"passeriform",
"passeriformub",
"perfsprint",
"permonitor",
"permonitorv2",
"predeclared",
"productcomments",
"productcompany",
"productcopyright",
"productdescription",
"productidentifier",
"productname",
"protoc",
"pyncz",
"randomstring",
Expand All @@ -96,12 +118,15 @@
"stdlib",
"stylecheck",
"tagalign",
"Taskfile",
"tenv",
"testifylint",
"textshadow",
"thisbeyond",
"tkrajina",
"trimpath",
"trivago",
"tubone",
"tweenjs",
"unconvert",
"underef",
Expand All @@ -111,8 +136,12 @@
"Utkarsh",
"valyala",
"varnamelen",
"VITE",
"wailsapp",
"wailsio",
"wailsjs",
"wailsroomservice",
"windowsfilename",
"winloader",
"wrapcheck"
],
Expand Down
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@
"cwd": "${workspaceFolder}"
}
},
{
"label": "[Generation] Generate Wails Bindings",
"type": "shell",
"command": "wails3",
"args": [
"generate",
"bindings",
"-ts",
],
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
}
},
{
"label": "[Sanity] Ping Hosted gRPC server",
"type": "shell",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Ensure you have the following installed on your system:
2. Install Wails:

```bash
go install github.com/wailsapp/wails/v2/cmd/wails@latest
go install github.com/wailsapp/wails/v3/cmd/wails@latest
```

3. Generate protobuf bindings:
Expand All @@ -63,7 +63,7 @@ Ensure you have the following installed on your system:
4. Build the project:

```bash
wails build -clean
wails3 build
```

5. Run the game:
Expand Down
67 changes: 41 additions & 26 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,73 @@ require (
github.com/abice/go-enum v0.6.0
github.com/caarlos0/env/v11 v11.3.1
github.com/jxskiss/mcli v0.9.5
github.com/leaanthony/u v1.1.0
github.com/necmettindev/randomstring v0.1.0
github.com/wailsapp/wails/v2 v2.9.2
google.golang.org/grpc v1.67.1
google.golang.org/protobuf v1.34.2
github.com/wailsapp/wails/v3 v3.0.0-alpha.9
google.golang.org/grpc v1.69.4
google.golang.org/protobuf v1.36.3
)

require (
dario.cat/mergo v1.0.1 // indirect
github.com/MakeNowJust/heredoc/v2 v2.0.1 // indirect
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver/v3 v3.2.0 // indirect
github.com/Masterminds/semver/v3 v3.3.1 // indirect
github.com/Masterminds/sprig/v3 v3.2.3 // indirect
github.com/Microsoft/go-winio v0.6.1 // indirect
github.com/ProtonMail/go-crypto v1.0.0 // indirect
github.com/adrg/xdg v0.5.0 // indirect
github.com/bep/debounce v1.2.1 // indirect
github.com/cloudflare/circl v1.3.8 // indirect
github.com/cpuguy83/go-md2man/v2 v2.0.2 // indirect
github.com/go-ole/go-ole v1.2.6 // indirect
github.com/cyphar/filepath-securejoin v0.2.5 // indirect
github.com/ebitengine/purego v0.4.0-alpha.4 // indirect
github.com/emirpasic/gods v1.18.1 // indirect
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
github.com/go-git/go-billy/v5 v5.6.0 // indirect
github.com/go-git/go-git/v5 v5.12.0 // indirect
github.com/go-ole/go-ole v1.3.0 // indirect
github.com/godbus/dbus/v5 v5.1.0 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/mock v1.6.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/huandu/xstrings v1.3.3 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e // indirect
github.com/labstack/echo/v4 v4.10.2 // indirect
github.com/kevinburke/ssh_config v1.2.0 // indirect
github.com/labstack/gommon v0.4.1 // indirect
github.com/leaanthony/go-ansi-parser v1.6.0 // indirect
github.com/leaanthony/gosod v1.0.3 // indirect
github.com/leaanthony/slicer v1.6.0 // indirect
github.com/leaanthony/u v1.1.0 // indirect
github.com/leaanthony/go-ansi-parser v1.6.1 // indirect
github.com/lmittmann/tint v1.0.4 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mattn/goveralls v0.0.12 // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
github.com/pjbgf/sha1cd v0.3.0 // indirect
github.com/pkg/browser v0.0.0-20210911075715-681adbf594b8 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/rivo/uniseg v0.4.4 // indirect
github.com/rivo/uniseg v0.4.7 // indirect
github.com/russross/blackfriday/v2 v2.1.0 // indirect
github.com/samber/lo v1.38.1 // indirect
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 // indirect
github.com/shopspring/decimal v1.2.0 // indirect
github.com/spf13/cast v1.3.1 // indirect
github.com/tkrajina/go-reflector v0.5.6 // indirect
github.com/skeema/knownhosts v1.2.2 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/urfave/cli/v2 v2.26.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
github.com/wailsapp/go-webview2 v1.0.16 // indirect
github.com/wailsapp/go-webview2 v1.0.19 // indirect
github.com/wailsapp/mimetype v1.4.1 // indirect
github.com/xanzy/ssh-agent v0.3.3 // indirect
github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 // indirect
golang.org/x/crypto v0.26.0 // indirect
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1 // indirect
golang.org/x/mod v0.17.0 // indirect
golang.org/x/net v0.28.0 // indirect
golang.org/x/sys v0.24.0 // indirect
golang.org/x/text v0.17.0 // indirect
golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d // indirect
golang.org/x/crypto v0.28.0 // indirect
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/net v0.30.0 // indirect
golang.org/x/sync v0.9.0 // indirect
golang.org/x/sys v0.28.0 // indirect
golang.org/x/text v0.19.0 // indirect
golang.org/x/tools v0.23.0 // indirect
golang.org/x/tools/cmd/cover v0.1.0-deprecated // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
)
Loading