Skip to content

Commit 3635c37

Browse files
committed
do some clean
1 parent af17397 commit 3635c37

15 files changed

Lines changed: 33 additions & 238 deletions

File tree

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ jobs:
109109
env: ${{ matrix.env }}
110110
run: |
111111
cd debug
112-
./teeworlds_srv shutdown
112+
./ArchiveServer shutdown
113113
114114
- name: Build in release mode
115115
env: ${{ matrix.env }}
@@ -128,7 +128,7 @@ jobs:
128128
env: ${{ matrix.env }}
129129
run: |
130130
cd release
131-
./teeworlds_srv shutdown
131+
./ArchiveServer shutdown
132132
133133
- name: Package
134134
run: |
@@ -241,10 +241,10 @@ jobs:
241241
- name: Build in debug mode
242242
run: ./bam/bam conf=debug all
243243
- name: Test debug
244-
run: ./build/${{ matrix.archtitecture }}/debug/teeworlds_srv shutdown
244+
run: ./build/${{ matrix.archtitecture }}/debug/ArchiveServer shutdown
245245

246246
- name: Build in release mode
247247
run: ./bam/bam conf=release all
248248
- name: Test release
249-
run: ./build/${{ matrix.archtitecture }}/release/teeworlds_srv shutdown
249+
run: ./build/${{ matrix.archtitecture }}/release/ArchiveServer shutdown
250250

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ map_resave*
2525
map_version*
2626
mastersrv*
2727
packetgen*
28-
teeworlds*
29-
!other/bash-completion/teeworlds
28+
ArchiveClient*
29+
!ArchiveClient.desktop
3030
!teeworlds.manifest
3131
!teeworlds.rc
32-
teeworlds_srv*
33-
!other/bash-completion/teeworlds_srv
32+
ArchiveServer*
3433
testrunner
3534
versionsrv*
3635

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ set_property(DIRECTORY APPEND PROPERTY CMAKE_CONFIGURE_DEPENDS
8585
src/game/version.h
8686
)
8787

88-
set(SERVER_EXECUTABLE teeworlds_srv CACHE STRING "Name of the built server executable")
89-
set(CLIENT_EXECUTABLE teeworlds CACHE STRING "Name of the build client executable")
88+
set(SERVER_EXECUTABLE ArchiveServer CACHE STRING "Name of the built server executable")
89+
set(CLIENT_EXECUTABLE ArchiveClient CACHE STRING "Name of the build client executable")
9090

9191
########################################################################
9292
# Compiler flags
@@ -1492,7 +1492,7 @@ if(CLIENT)
14921492
)
14931493

14941494
if(TARGET_OS STREQUAL "windows")
1495-
set(CLIENT_ICON "other/icons/${CLIENT_EXECUTABLE}.rc")
1495+
set(CLIENT_ICON "other/icons/teeworlds.rc")
14961496
if(NOT MINGW)
14971497
set(CLIENT_MANIFEST "other/manifest/teeworlds.manifest")
14981498
else()
@@ -1578,7 +1578,7 @@ set(GAME_GENERATED_SERVER
15781578
)
15791579
set(SERVER_SRC ${ENGINE_SERVER} ${GAME_SERVER} ${GAME_GENERATED_SERVER})
15801580
if(TARGET_OS STREQUAL "windows")
1581-
set(SERVER_ICON "other/icons/${SERVER_EXECUTABLE}.rc")
1581+
set(SERVER_ICON "other/icons/teeworlds_srv.rc")
15821582
else()
15831583
set(SERVER_ICON)
15841584
endif()

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ Building
6666

6767
On subsequent builds, you only have to repeat the `ninja` step.
6868

69-
You can then run the client with `./teeworlds` and the server with
70-
`./teeworlds_srv`.
69+
You can then run the client with `./ArchiveClient` and the server with
70+
`./ArchiveServer`.
7171

7272

7373
Build options
@@ -108,7 +108,7 @@ Building
108108
bam
109109
```
110110

111-
The compiled game is located in a sub-folder of `build`. You can run the client from there with `./teeworlds` and the server with `./teeworlds_srv`.
111+
The compiled game is located in a sub-folder of `build`. You can run the client from there with `./ArchiveClient` and the server with `./ArchiveServer`.
112112

113113

114114
Build options

bam.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,15 @@ function BuildClient(settings, family, platform)
385385
local game_client = Compile(settings, CollectRecursive("src/game/client/*.cpp"), SharedClientFiles())
386386
local game_editor = Compile(settings, Collect("src/game/editor/*.cpp"))
387387

388-
Link(settings, "teeworlds", libs["zlib"], libs["png"], libs["json"], libs["glad"], client, game_client, game_editor)
388+
Link(settings, "ArchiveClient", libs["zlib"], libs["png"], libs["json"], libs["glad"], client, game_client, game_editor)
389389
end
390390

391391
function BuildServer(settings, family, platform)
392392
local server = Compile(settings, Collect("src/engine/server/*.cpp"))
393393

394394
local game_server = Compile(settings, CollectRecursive("src/game/server/*.cpp"), SharedServerFiles())
395395

396-
return Link(settings, "teeworlds_srv", libs["zlib"], libs["json"], server, game_server)
396+
return Link(settings, "ArchiveServer", libs["zlib"], libs["json"], server, game_server)
397397
end
398398

399399
function BuildTools(settings)
@@ -539,7 +539,7 @@ else
539539
headless = nil
540540
end
541541

542-
targets = {client="teeworlds", server="teeworlds_srv",
542+
targets = {client="ArchiveClient", server="ArchiveServer",
543543
versionserver="versionsrv", masterserver="mastersrv",
544544
tools="pseudo_tools", content="content"}
545545

cmake/FixupBundleHelper.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ message(STATUS "Running post-install script to fix up bundle...")
44

55
set(PACKAGE_DIR "${CMAKE_INSTALL_PREFIX}")
66

7-
set(CLIENT_EXECUTABLE_PATH "${PACKAGE_DIR}/teeworlds@CMAKE_EXECUTABLE_SUFFIX@")
8-
set(SERVER_EXECUTABLE_PATH "${PACKAGE_DIR}/teeworlds_srv@CMAKE_EXECUTABLE_SUFFIX@")
7+
set(CLIENT_EXECUTABLE_PATH "${PACKAGE_DIR}/ArchiveClient@CMAKE_EXECUTABLE_SUFFIX@")
8+
set(SERVER_EXECUTABLE_PATH "${PACKAGE_DIR}/ArchiveServer@CMAKE_EXECUTABLE_SUFFIX@")
99

1010
function(fixup_single_executable EXEC_PATH)
1111
if(EXISTS "${EXEC_PATH}")

other/ArchiveClient.desktop

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Name=Teeworlds Archive
3+
GenericName=Online multi-player 2D platform shooter modification
4+
Type=Application
5+
Terminal=false
6+
Exec=ArchiveClient
7+
Icon=ArchiveClient
8+
Comment=Teeworlds Archive
9+
Categories=Game;ArcadeGame;

other/bash-completion/teeworlds

Lines changed: 0 additions & 43 deletions
This file was deleted.

other/bash-completion/teeworlds_srv

Lines changed: 0 additions & 47 deletions
This file was deleted.

other/manifest/teeworlds.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<asmv1:assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3-
<assemblyIdentity version="1.0.0.0" name="teeworlds.exe"/>
3+
<assemblyIdentity version="1.0.0.0" name="ArchiveClient.exe"/>
44
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
55
<security>
66
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">

0 commit comments

Comments
 (0)