Skip to content

Commit a04ac69

Browse files
authored
Fix released server archives have no core pack (#59)
1 parent 057e5b0 commit a04ac69

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,10 @@ jobs:
596596
dart pub get
597597
cd ..
598598
dart run tools/generate.dart
599-
tree -a -L 2 server/server-build
599+
- name: Copy core pack
600+
run: |
601+
cp packs/core.stnx server-build/packs/
602+
tree -a -L 2 server-build
600603
- name: Archive
601604
uses: actions/upload-artifact@v4
602605
with:

metadata/en-US/changelogs/10.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* Add action buttons support
66
* Add welcome text to server
77
* Fix home page header text color in certain themes
8+
* Fix released server archives have no core pack
89
* Rebuild event system
910

1011
Read more here: https://linwood.dev/setonix/0.6.0

server/lib/src/asset.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ class ServerAssetManager extends AssetManager {
2929
final directory = Directory('packs');
3030
if (!await directory.exists()) {
3131
await directory.create();
32-
print(
32+
console.print(
3333
'WARNING: No packs directory found. Please add packs to the server.',
34+
level: LogLevel.warning,
3435
);
3536
}
3637
await for (final file in directory.list()) {

0 commit comments

Comments
 (0)