Skip to content

Commit cf2b70b

Browse files
authored
Merge branch 'master' into reconnection-button
2 parents fca3ac1 + 5dea040 commit cf2b70b

25 files changed

Lines changed: 255 additions & 159 deletions

.github/workflows/build.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,13 @@ jobs:
139139
run: |
140140
curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
141141
unzip -d bass -o bass.zip
142-
cp ./bass/bass.h ./lib
142+
cp ./bass/c/bass.h ./lib
143143
cp ./bass/libs/x86_64/libbass.so ./lib/
144144
cp ./bass/libs/x86_64/libbass.so ./bin/
145145
146146
curl http://www.un4seen.com/files/bassopus24-linux.zip -o bassopus.zip
147147
unzip -d bass -o bassopus.zip
148-
cp ./bass/bassopus.h ./lib
148+
cp ./bass/c/bassopus.h ./lib
149149
cp ./bass/libs/x86_64/libbassopus.so ./lib/
150150
cp ./bass/libs/x86_64/libbassopus.so ./bin/
151151
@@ -187,13 +187,16 @@ jobs:
187187
cd ${{ github.workspace }}/bin
188188
mkdir ./imageformats
189189
cp ../qtapng/plugins/imageformats/libqapng.so ./imageformats
190-
cp ../scripts/launch.sh .
190+
cp ../data/logo-client.png ./icon.png
191191
cp ../README_LINUX.md .
192-
chmod +x launch.sh
192+
cp ../scripts/DYNAMIC_INSTALL.sh ./INSTALL.sh
193+
chmod +x INSTALL.sh
193194
chmod +x Attorney_Online
194195
196+
patchelf --add-rpath . Attorney_Online
197+
195198
cd ..
196-
tar --transform='flags=r;s|bin|Attorney_Online|' -cvf Attorney_Online-Dynamic.tar bin
199+
tar --transform='flags=r;s|bin|Attorney Online|' -cvf Attorney_Online-Dynamic.tar bin
197200
198201
- name: Create AppImage
199202
shell: bash
@@ -214,17 +217,23 @@ jobs:
214217
cp scripts/Attorney_Online.desktop AppDir/usr/share/applications
215218
cp data/logo-client.png AppDir/Attorney_Online.png
216219
220+
GIT_SHORT_SHA="${GITHUB_SHA::8}"
217221
QTDIR=${QT_ROOT_DIR} ./appimagetool deploy AppDir/usr/share/applications/Attorney_Online.desktop
218-
ARCH=x86_64 VERSION=2.11 ./appimagetool AppDir
222+
ARCH=x86_64 VERSION=${GIT_SHORT_SHA} ./appimagetool AppDir
219223
224+
- name: Deploy AppImage
225+
shell: bash
226+
run: |
220227
mkdir bin-appimage
221228
cp -r bin/base bin-appimage
229+
cp data/logo-client.png bin-appimage/icon.png
222230
cp README_LINUX.md bin-appimage
231+
cp scripts/APPIMAGE_INSTALL.sh bin-appimage/INSTALL.sh
223232
cp Attorney_Online-*-x86_64.AppImage bin-appimage
233+
chmod +x bin-appimage/INSTALL.sh
224234
chmod +x bin-appimage/Attorney_Online-*-x86_64.AppImage
225235
226-
tar -cvf Attorney_Online-AppImage.tar bin-appimage/*
227-
tar --transform='flags=r;s|bin-appimage|Attorney_Online|' -cvf Attorney_Online-AppImage.tar bin-appimage
236+
tar --transform='flags=r;s|bin-appimage|Attorney Online|' -cvf Attorney_Online-AppImage.tar bin-appimage
228237
229238
- name: Upload Dynamic Artifact
230239
uses: actions/upload-artifact@master

LICENSE.MIT

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

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ The logo (`logo.png` and `logo.ico`) was designed by Lucas Carbí. The character
7575

7676
## Copyright
7777

78-
The project is dual-licensed; you are free to copy, modify and distribute AO2 under the GPLv3 or the MIT license.
78+
The project is licensed under the GPLv3 license.
79+
Code that was released under the MIT/GPLv3 dual-license can be found [here](https://github.com/AttorneyOnline/AO2-Client/tree/last-dual-licensed).
7980

8081
Copyright (c) 2016-2018 OmniTroid
8182

README_LINUX.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
There are two download options for running on Linux: the **dynamically-linked** build and the **AppImage**. The dynamic build is lighter, but might only run on newer systems. The AppImage is a bit bigger, but should run seamlessly on most systems (anything newer than Ubuntu 22.04 LTS).
44

5+
Each version also accompanies an `INSTALL.sh` script that will create a desktop file for AO pointing to where the script was ran. This will enable you to run AO from an app launcher. Note that moving AO's folder will require running this script again.
6+
57
### AppImage
68

79
If you downloaded the **AppImage** version, it should just be plug-and-play. If you run into errors or bugs, contact us in our [Discord server](https://discord.gg/wWvQ3pw) or open an [issue on GitHub](https://github.com/AttorneyOnline/AO2-Client/issues).

RELICENSE.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# License Change Notice
2+
3+
## What Changed
4+
5+
This project was previously dual-licensed under both MIT and GPLv3 licenses.
6+
The project is now exclusively licensed under the [GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html) license.
7+
8+
**Effective for any commit after `4db979187386326df64b9359b8de5e90468f7fc3`, tagged as `last-dual-licensed`, all new contributions and releases are licensed exclusively under GPLv3.**
9+
10+
## Impact on Existing Forks
11+
12+
If you forked this repository when it was available under the MIT license:
13+
14+
### Your Existing Fork
15+
- **You can continue using your existing fork under the MIT license** for any code that was committed before this license change
16+
- The MIT license you received for that specific version remains valid and irrevocable
17+
- You are not required to change the license of your existing fork
18+
19+
### Pulling New Changes
20+
If you pull new commits from our repository into your MIT-licensed fork:
21+
22+
- **New code from us will be GPLv3-licensed**
23+
- This creates a mixed-license situation in your repository
24+
- Any binary built from a mixed tree must comply with GPL v3 for the whole work unless you can isolate the MIT parts as separate, independent modules
25+
26+
### Your Options
27+
28+
1. **Keep your current fork as-is** under MIT license and stop pulling our updates
29+
2. **Accept the GPLv3 license** and continue receiving updates from upstream
30+
3. **Fork from the last MIT commit** and maintain your own separate development
31+
32+
## Recommendations
33+
34+
- Review the differences between MIT and GPLv3 licenses to understand the implications
35+
- Consider whether GPLv3's copyleft requirements are compatible with your project goals
36+
37+
---
38+
**Note**: This notice does not constitute legal advice. Please consult with qualified legal counsel for advice specific to your situation.

configure.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,12 @@ get_bass() {
235235
x64/bass.dll:./bin
236236
elif [[ "$PLATFORM" == "linux" ]]; then
237237
get_zip https://www.un4seen.com/files/bass24-linux.zip \
238-
bass.h:./lib \
238+
c/bass.h:./lib \
239239
libs/x86_64/libbass.so:./lib \
240240
libs/x86_64/libbass.so:./bin
241241
elif [[ "$PLATFORM" == "macos" ]]; then
242242
get_zip https://www.un4seen.com/files/bass24-osx.zip \
243-
bass.h:./lib \
243+
c/bass.h:./lib \
244244
libbass.dylib:./lib
245245
fi
246246
}
@@ -261,12 +261,12 @@ get_bassopus() {
261261
x64/bassopus.dll:./bin
262262
elif [[ "$PLATFORM" == "linux" ]]; then
263263
get_zip https://www.un4seen.com/files/bassopus24-linux.zip \
264-
bassopus.h:./lib \
264+
c/bassopus.h:./lib \
265265
libs/x86_64/libbassopus.so:./lib \
266266
libs/x86_64/libbassopus.so:./bin
267267
elif [[ "$PLATFORM" == "macos" ]]; then
268268
get_zip https://www.un4seen.com/files/bassopus24-osx.zip \
269-
bassopus.h:./lib \
269+
c/bassopus.h:./lib \
270270
libbassopus.dylib:./lib
271271
fi
272272
}

data/ui/options_dialog.ui

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</rect>
1212
</property>
1313
<property name="contextMenuPolicy">
14-
<enum>Qt::ContextMenuPolicy::NoContextMenu</enum>
14+
<enum>Qt::NoContextMenu</enum>
1515
</property>
1616
<property name="windowTitle">
1717
<string>Settings</string>
@@ -20,7 +20,7 @@
2020
<item>
2121
<widget class="QTabWidget" name="settings_tabs">
2222
<property name="focusPolicy">
23-
<enum>Qt::FocusPolicy::NoFocus</enum>
23+
<enum>Qt::NoFocus</enum>
2424
</property>
2525
<property name="currentIndex">
2626
<number>0</number>
@@ -131,10 +131,7 @@
131131
<item row="6" column="1">
132132
<widget class="QFrame" name="theme_log_divider">
133133
<property name="frameShape">
134-
<enum>QFrame::Shape::HLine</enum>
135-
</property>
136-
<property name="frameShadow">
137-
<enum>QFrame::Shadow::Sunken</enum>
134+
<enum>QFrame::NoFrame</enum>
138135
</property>
139136
</widget>
140137
</item>
@@ -198,7 +195,7 @@
198195
<string>Chat Rate Limit:</string>
199196
</property>
200197
<property name="textFormat">
201-
<enum>Qt::TextFormat::AutoText</enum>
198+
<enum>Qt::PlainText</enum>
202199
</property>
203200
</widget>
204201
</item>
@@ -215,10 +212,7 @@
215212
<item row="11" column="1">
216213
<widget class="QFrame" name="log_names_divider">
217214
<property name="frameShape">
218-
<enum>QFrame::Shape::HLine</enum>
219-
</property>
220-
<property name="frameShadow">
221-
<enum>QFrame::Shadow::Sunken</enum>
215+
<enum>QFrame::NoFrame</enum>
222216
</property>
223217
</widget>
224218
</item>
@@ -272,10 +266,7 @@
272266
<item row="15" column="1">
273267
<widget class="QFrame" name="net_divider">
274268
<property name="frameShape">
275-
<enum>QFrame::Shape::HLine</enum>
276-
</property>
277-
<property name="frameShadow">
278-
<enum>QFrame::Shadow::Sunken</enum>
269+
<enum>QFrame::NoFrame</enum>
279270
</property>
280271
</widget>
281272
</item>
@@ -611,6 +602,9 @@
611602
</item>
612603
<item row="35" column="0">
613604
<widget class="QLabel" name="playerlist_format_lbl">
605+
<property name="toolTip">
606+
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;Set the format for the player list to use.&lt;br&gt;&lt;br&gt;Valid fields are:&lt;br&gt;{id} - Client ID&lt;br&gt;{displayname} - Character display name&lt;br&gt;{character} - Character folder name&lt;br&gt;{username} - Out-of-character name&lt;br&gt;(Note: Some servers may hide out-of-character names.)&lt;/body&gt;&lt;/html&gt;</string>
607+
</property>
614608
<property name="text">
615609
<string>Playerlist Format:</string>
616610
</property>
@@ -663,10 +657,7 @@
663657
<item row="1" column="0" colspan="2">
664658
<widget class="QFrame" name="audio_volume_divider">
665659
<property name="frameShape">
666-
<enum>QFrame::Shape::HLine</enum>
667-
</property>
668-
<property name="frameShadow">
669-
<enum>QFrame::Shadow::Sunken</enum>
660+
<enum>QFrame::NoFrame</enum>
670661
</property>
671662
</widget>
672663
</item>
@@ -693,10 +684,7 @@
693684
<item row="3" column="0" colspan="2">
694685
<widget class="QFrame" name="volume_blip_divider">
695686
<property name="frameShape">
696-
<enum>QFrame::Shape::HLine</enum>
697-
</property>
698-
<property name="frameShadow">
699-
<enum>QFrame::Shadow::Sunken</enum>
687+
<enum>QFrame::NoFrame</enum>
700688
</property>
701689
</widget>
702690
</item>
@@ -828,9 +816,6 @@
828816
<layout class="QGridLayout" name="mount_buttons_layout">
829817
<item row="2" column="5">
830818
<spacer name="mount_buttons_spacer_2">
831-
<property name="orientation">
832-
<enum>Qt::Orientation::Horizontal</enum>
833-
</property>
834819
<property name="sizeHint" stdset="0">
835820
<size>
836821
<width>40</width>
@@ -867,11 +852,8 @@
867852
</item>
868853
<item row="2" column="2">
869854
<spacer name="mount_buttons_spacer">
870-
<property name="orientation">
871-
<enum>Qt::Orientation::Horizontal</enum>
872-
</property>
873855
<property name="sizeType">
874-
<enum>QSizePolicy::Policy::Expanding</enum>
856+
<enum>QSizePolicy::Fixed</enum>
875857
</property>
876858
<property name="sizeHint" stdset="0">
877859
<size>
@@ -1126,10 +1108,7 @@ Default: 0.</string>
11261108
<item>
11271109
<widget class="QFrame" name="privacy_separator">
11281110
<property name="frameShape">
1129-
<enum>QFrame::Shape::HLine</enum>
1130-
</property>
1131-
<property name="frameShadow">
1132-
<enum>QFrame::Shadow::Sunken</enum>
1111+
<enum>QFrame::NoFrame</enum>
11331112
</property>
11341113
</widget>
11351114
</item>

scripts/APPIMAGE_INSTALL.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env sh
2+
3+
# exit on error
4+
set -e
5+
6+
# Move to script's directory
7+
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
8+
cd "${SCRIPT_DIR}"
9+
10+
#add .desktop file (which should allow most DE's easy access to the program
11+
mkdir -p ~/.local/share/applications
12+
13+
# desktop files don't like spaces in the Exec field, we have to replace them with "\s"
14+
appimage="$(echo Attorney_Online-*-x86_64.AppImage)"
15+
escaped_exec="$(echo "$(pwd)" | sed 's/ /\\s/g')"/"$appimage"
16+
17+
desktop_file="\
18+
[Desktop Entry]
19+
Type=Application
20+
Name=Attorney Online
21+
Comment=The courtroom drama simulator
22+
Path=$(pwd)
23+
Exec=\"$escaped_exec\"
24+
Icon=$(pwd)/icon.png"
25+
26+
echo "$desktop_file" > ~/.local/share/applications/'Attorney Online'.desktop
27+
28+
#marking the program as executable
29+
chmod +x Attorney_Online-*-x86_64.AppImage
30+
31+
#running the executable
32+
./Attorney_Online-*-x86_64.AppImage

scripts/DYNAMIC_INSTALL.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env sh
2+
3+
# exit on error
4+
set -e
5+
6+
# Move to script's directory
7+
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
8+
cd "${SCRIPT_DIR}"
9+
10+
#add .desktop file (which should allow most DE's easy access to the program
11+
mkdir -p ~/.local/share/applications
12+
13+
# desktop files don't like spaces in the Exec field, we have to replace them with "\s"
14+
escaped_exec="$(echo "$(pwd)" | sed 's/ /\\s/g')"/Attorney_Online
15+
16+
desktop_file="\
17+
[Desktop Entry]
18+
Type=Application
19+
Name=Attorney Online
20+
Comment=The courtroom drama simulator
21+
Path=$(pwd)
22+
Exec=\"$escaped_exec\"
23+
Icon=$(pwd)/icon.png"
24+
25+
echo "$desktop_file" > ~/.local/share/applications/'Attorney Online'.desktop
26+
27+
#running the program
28+
chmod +x Attorney_Online
29+
./Attorney_Online

scripts/launch.sh

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

0 commit comments

Comments
 (0)