Skip to content

Commit 9af1ae8

Browse files
committed
update readme and workflow file
1 parent 6f6a953 commit 9af1ae8

File tree

3 files changed

+74
-17
lines changed

3 files changed

+74
-17
lines changed

.github/workflows/build.yaml

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ on:
66
- main # Trigger on pushes to main branch
77

88
jobs:
9-
build:
9+
# Windows Build Job
10+
windows-build:
1011
runs-on: ubuntu-latest
1112

1213
steps:
1314
# Step 1: Checkout the code
1415
- name: Checkout code
1516
uses: actions/checkout@v3
1617

17-
# Step 2: Set up .NET
18+
# Step 2: Set up .NET for Windows
1819
- name: Set up .NET
1920
uses: actions/setup-dotnet@v3
2021
with:
@@ -24,14 +25,14 @@ jobs:
2425
- name: Restore dependencies
2526
run: dotnet restore
2627

27-
# Step 4: Publish the project
28-
- name: Publish the application
28+
# Step 4: Publish the project as a single file for Windows 64-bit
29+
- name: Publish the application (Windows)
2930
run: dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish
3031

31-
# Step 5: Zip the publish folder
32-
- name: Zip the publish folder
33-
run: zip -r ./publish/published_app.zip ./publish
34-
32+
# Step 5: Zip the Windows publish folder
33+
- name: Zip the Windows publish folder
34+
run: zip -r ./publish/win64.zip ./publish
35+
3536
# Step 6: Delete existing nightly release and tag if it exists
3637
- name: Delete existing nightly release and tag
3738
env:
@@ -54,13 +55,55 @@ jobs:
5455
draft: false
5556
prerelease: true # Mark as prerelease if you want to differentiate
5657

57-
# Step 8: Upload published files to release
58-
- name: Upload .NET Publish Artifacts
58+
# Step 8: Upload Windows build to release
59+
- name: Upload Windows Build Artifact
5960
uses: actions/upload-release-asset@v1
6061
env:
6162
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6263
with:
6364
upload_url: ${{ steps.create_release.outputs.upload_url }}
64-
asset_path: ./publish/published_app.zip
65+
asset_path: ./publish/win64.zip
6566
asset_name: win64.zip
6667
asset_content_type: application/zip
68+
69+
# Linux Build Job
70+
linux-build:
71+
runs-on: ubuntu-latest
72+
73+
steps:
74+
# Step 1: Checkout the code
75+
- name: Checkout code
76+
uses: actions/checkout@v3
77+
78+
# Step 2: Set up .NET for Linux
79+
- name: Set up .NET
80+
uses: actions/setup-dotnet@v3
81+
with:
82+
dotnet-version: '6.0.x' # Specify your .NET version
83+
84+
# Step 3: Restore dependencies
85+
- name: Restore dependencies
86+
run: dotnet restore
87+
88+
# Step 4: Publish the project as a single file for Linux 64-bit
89+
- name: Publish the application (Linux)
90+
run: dotnet publish -c Release -r linux-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -o ./publish
91+
92+
# Step 5: Copy the native library
93+
- name: Copy libsteam_api.so to publish folder
94+
run: cp ./NativeLibraries/linux64/libsteam_api.so ./publish/
95+
96+
# Step 6: Zip the Linux publish folder
97+
- name: Zip the Linux publish folder
98+
run: zip -r ./publish/linux64.zip ./publish
99+
100+
# Step 7: Upload Linux build to release
101+
- name: Upload Linux Build Artifact
102+
uses: actions/upload-release-asset@v1
103+
env:
104+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
with:
106+
upload_url: ${{ steps.windows-build.outputs.create_release.outputs.upload_url }}
107+
asset_path: ./publish/linux64.zip
108+
asset_name: linux64.zip
109+
asset_content_type: application/zip
157 Bytes
Binary file not shown.

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Webfishing Cove
2-
Cove is a dedicated server for webfishing written in C#!
2+
Cove is a dedicated server for WebFishing written in C#!
33

44
> [!IMPORTANT]
55
> Cove is currently in less than a Beta state, things are hard coded and buggy.
@@ -16,11 +16,25 @@ Cove is a implementation of the WebFishing network protocall in a CLI meaning it
1616
- [ ] Add spawns for metal detector items
1717
- [ ] Some sort of plugin or modding support (maybe)
1818

19-
# How to run?
20-
Build the project and make sure all files are are
19+
# How to run:
2120

22-
Make sure steam is running and logged in
21+
> [!NOTE]
22+
> To run a server you must have Steam open on the computer you wish to run the server on
23+
> and Steam must be logged into a account that has WebFishing in it's library
2324
24-
Make sure you have WebFishing on the logged in steam account
25+
1. Download
26+
- You can download the most recent version of the server here: [Nightly Releases](https://github.com/DrMeepso/WebFishingCove/releases/tag/nightly)
27+
- A new build is made everytime code is changed so it may update quite alot!
2528

26-
Run the EXE!!!!!!!
29+
2. Decompile WebFishing
30+
- Once you have the source files drag the `main_map.tscn` file into the `/worlds` folder of the server!
31+
- The `main_map.tscn` file can be found here in the WebFishing project `/Scenes/Map`
32+
33+
3. Change settings
34+
- You can modify the settings in the server.cgf file with all the info you want!
35+
- Too add a admin put there Steam64ID in the admins.cfg file with a ` = true` after it!
36+
- I.E. `76561198288728683 = true`
37+
38+
4. Run!
39+
- Run the server EXE and enjoy!
40+
- Please be respectful and dont name the servers anything stupid!

0 commit comments

Comments
 (0)