Skip to content
Merged
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
16 changes: 8 additions & 8 deletions .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ jobs:
- name: Resolve Swift package dependencies
run: >-
xcodebuild -resolvePackageDependencies
-project AllServerForMac.xcodeproj
-scheme AllServerForMac
-project ArkServer.xcodeproj
-scheme ArkServer

- name: Build macOS app
run: >-
xcodebuild build
-project AllServerForMac.xcodeproj
-scheme AllServerForMac
-project ArkServer.xcodeproj
-scheme ArkServer
-destination 'platform=macOS'
-derivedDataPath "$RUNNER_TEMP/AllServerForMacDerivedData"
-derivedDataPath "$RUNNER_TEMP/ArkServerDerivedData"
CODE_SIGNING_ALLOWED=NO

- name: Test macOS app
run: >-
xcodebuild test
-project AllServerForMac.xcodeproj
-scheme AllServerForMac
-project ArkServer.xcodeproj
-scheme ArkServer
-destination 'platform=macOS'
-derivedDataPath "$RUNNER_TEMP/AllServerForMacDerivedData"
-derivedDataPath "$RUNNER_TEMP/ArkServerDerivedData"
CODE_SIGNING_ALLOWED=NO
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ jobs:
PY
- name: Test
run: >-
xcodebuild test -project AllServerForMac.xcodeproj -scheme AllServerForMac
-destination 'platform=macOS' -only-testing:AllServerForMacTests
-derivedDataPath "$RUNNER_TEMP/AllServerForMacDerivedData"
xcodebuild test -project ArkServer.xcodeproj -scheme ArkServer
-destination 'platform=macOS' -only-testing:ArkServerTests
-derivedDataPath "$RUNNER_TEMP/ArkServerDerivedData"
CODE_SIGNING_ALLOWED=NO
- name: Build universal release
run: >-
xcodebuild build -project AllServerForMac.xcodeproj -scheme AllServerForMac
xcodebuild build -project ArkServer.xcodeproj -scheme ArkServer
-configuration Release -destination 'generic/platform=macOS'
-derivedDataPath "$RUNNER_TEMP/AllServerForMacRelease"
-derivedDataPath "$RUNNER_TEMP/ArkServerRelease"
ARCHS='arm64 x86_64' ONLY_ACTIVE_ARCH=NO
MARKETING_VERSION="$APP_VERSION" CURRENT_PROJECT_VERSION="$APP_BUILD"
CODE_SIGNING_ALLOWED=NO
- name: Package app
run: |
codesign --force --deep --sign - "$RUNNER_TEMP/AllServerForMacRelease/Build/Products/Release/AllServerForMac.app"
ditto -c -k --sequesterRsrc --keepParent "$RUNNER_TEMP/AllServerForMacRelease/Build/Products/Release/AllServerForMac.app" AllServerForMac.app.zip
codesign --force --deep --sign - "$RUNNER_TEMP/ArkServerRelease/Build/Products/Release/ArkServer.app"
ditto -c -k --sequesterRsrc --keepParent "$RUNNER_TEMP/ArkServerRelease/Build/Products/Release/ArkServer.app" ArkServer.app.zip
- name: Publish release
env:
GH_TOKEN: ${{ github.token }}
Expand All @@ -57,5 +57,5 @@ jobs:
if ! gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
gh release create "$RELEASE_TAG" --verify-tag --generate-notes --draft
fi
gh release upload "$RELEASE_TAG" AllServerForMac.app.zip --clobber
gh release upload "$RELEASE_TAG" ArkServer.app.zip --clobber
gh release edit "$RELEASE_TAG" --draft=false --latest
20 changes: 10 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ DerivedData/
*.plist
*.entitlements

!AllServerForMac/Assets.xcassets/
AllServerForMac/Assets.xcassets/*
!AllServerForMac/Assets.xcassets/Contents.json
!AllServerForMac/Assets.xcassets/AppIcon.appiconset/
!AllServerForMac/Assets.xcassets/AppIcon.appiconset/Contents.json
!AllServerForMac/Assets.xcassets/AppIcon.appiconset/*.png
!AllServerForMac/Assets.xcassets/AccentColor.colorset/
!AllServerForMac/Assets.xcassets/AccentColor.colorset/Contents.json
!ArkServer/Assets.xcassets/
ArkServer/Assets.xcassets/*
!ArkServer/Assets.xcassets/Contents.json
!ArkServer/Assets.xcassets/AppIcon.appiconset/
!ArkServer/Assets.xcassets/AppIcon.appiconset/Contents.json
!ArkServer/Assets.xcassets/AppIcon.appiconset/*.png
!ArkServer/Assets.xcassets/AccentColor.colorset/
!ArkServer/Assets.xcassets/AccentColor.colorset/Contents.json

!AllServerForMac/Info.plist
!AllServerForMac/AllServerForMac.entitlements
!ArkServer/Info.plist
!ArkServer/ArkServer.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -17,50 +17,50 @@
containerPortal = 25959A852E97F5E5003FA43E /* Project object */;
proxyType = 1;
remoteGlobalIDString = 25959A8C2E97F5E5003FA43E;
remoteInfo = AllServerForMac;
remoteInfo = ArkServer;
};
25959AA52E97F5E6003FA43E /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 25959A852E97F5E5003FA43E /* Project object */;
proxyType = 1;
remoteGlobalIDString = 25959A8C2E97F5E5003FA43E;
remoteInfo = AllServerForMac;
remoteInfo = ArkServer;
};
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
25959A8D2E97F5E5003FA43E /* AllServerForMac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = AllServerForMac.app; sourceTree = BUILT_PRODUCTS_DIR; };
25959A9A2E97F5E6003FA43E /* AllServerForMacTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AllServerForMacTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
25959AA42E97F5E6003FA43E /* AllServerForMacUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AllServerForMacUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
25959A8D2E97F5E5003FA43E /* ArkServer.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ArkServer.app; sourceTree = BUILT_PRODUCTS_DIR; };
25959A9A2E97F5E6003FA43E /* ArkServerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ArkServerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
25959AA42E97F5E6003FA43E /* ArkServerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = ArkServerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
25959AD02E98000000000001 /* Exceptions for "AllServerForMac" folder in "AllServerForMac" target */ = {
25959AD02E98000000000001 /* Exceptions for "ArkServer" folder in "ArkServer" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 25959A8C2E97F5E5003FA43E /* AllServerForMac */;
target = 25959A8C2E97F5E5003FA43E /* ArkServer */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */

/* Begin PBXFileSystemSynchronizedRootGroup section */
25959A8F2E97F5E5003FA43E /* AllServerForMac */ = {
25959A8F2E97F5E5003FA43E /* ArkServer */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
25959AD02E98000000000001 /* Exceptions for "AllServerForMac" folder in "AllServerForMac" target */,
25959AD02E98000000000001 /* Exceptions for "ArkServer" folder in "ArkServer" target */,
);
path = AllServerForMac;
path = ArkServer;
sourceTree = "<group>";
};
25959A9D2E97F5E6003FA43E /* AllServerForMacTests */ = {
25959A9D2E97F5E6003FA43E /* ArkServerTests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = AllServerForMacTests;
path = ArkServerTests;
sourceTree = "<group>";
};
25959AA72E97F5E6003FA43E /* AllServerForMacUITests */ = {
25959AA72E97F5E6003FA43E /* ArkServerUITests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = AllServerForMacUITests;
path = ArkServerUITests;
sourceTree = "<group>";
};
/* End PBXFileSystemSynchronizedRootGroup section */
Expand Down Expand Up @@ -95,9 +95,9 @@
25959A842E97F5E5003FA43E = {
isa = PBXGroup;
children = (
25959A8F2E97F5E5003FA43E /* AllServerForMac */,
25959A9D2E97F5E6003FA43E /* AllServerForMacTests */,
25959AA72E97F5E6003FA43E /* AllServerForMacUITests */,
25959A8F2E97F5E5003FA43E /* ArkServer */,
25959A9D2E97F5E6003FA43E /* ArkServerTests */,
25959AA72E97F5E6003FA43E /* ArkServerUITests */,
25959AC12E97F6E7003FA43E /* Frameworks */,
25959A8E2E97F5E5003FA43E /* Products */,
);
Expand All @@ -106,9 +106,9 @@
25959A8E2E97F5E5003FA43E /* Products */ = {
isa = PBXGroup;
children = (
25959A8D2E97F5E5003FA43E /* AllServerForMac.app */,
25959A9A2E97F5E6003FA43E /* AllServerForMacTests.xctest */,
25959AA42E97F5E6003FA43E /* AllServerForMacUITests.xctest */,
25959A8D2E97F5E5003FA43E /* ArkServer.app */,
25959A9A2E97F5E6003FA43E /* ArkServerTests.xctest */,
25959AA42E97F5E6003FA43E /* ArkServerUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -123,9 +123,9 @@
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
25959A8C2E97F5E5003FA43E /* AllServerForMac */ = {
25959A8C2E97F5E5003FA43E /* ArkServer */ = {
isa = PBXNativeTarget;
buildConfigurationList = 25959AAE2E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "AllServerForMac" */;
buildConfigurationList = 25959AAE2E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "ArkServer" */;
buildPhases = (
25959A892E97F5E5003FA43E /* Sources */,
25959A8A2E97F5E5003FA43E /* Frameworks */,
Expand All @@ -136,20 +136,20 @@
dependencies = (
);
fileSystemSynchronizedGroups = (
25959A8F2E97F5E5003FA43E /* AllServerForMac */,
25959A8F2E97F5E5003FA43E /* ArkServer */,
);
name = AllServerForMac;
name = ArkServer;
packageProductDependencies = (
25959AC22E97F6E7003FA43E /* Swifter */,
25959AD22E98000000000011 /* MediaServerKit */,
);
productName = AllServerForMac;
productReference = 25959A8D2E97F5E5003FA43E /* AllServerForMac.app */;
productName = ArkServer;
productReference = 25959A8D2E97F5E5003FA43E /* ArkServer.app */;
productType = "com.apple.product-type.application";
};
25959A992E97F5E6003FA43E /* AllServerForMacTests */ = {
25959A992E97F5E6003FA43E /* ArkServerTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 25959AB12E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "AllServerForMacTests" */;
buildConfigurationList = 25959AB12E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "ArkServerTests" */;
buildPhases = (
25959A962E97F5E6003FA43E /* Sources */,
25959A972E97F5E6003FA43E /* Frameworks */,
Expand All @@ -161,18 +161,18 @@
25959A9C2E97F5E6003FA43E /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
25959A9D2E97F5E6003FA43E /* AllServerForMacTests */,
25959A9D2E97F5E6003FA43E /* ArkServerTests */,
);
name = AllServerForMacTests;
name = ArkServerTests;
packageProductDependencies = (
);
productName = AllServerForMacTests;
productReference = 25959A9A2E97F5E6003FA43E /* AllServerForMacTests.xctest */;
productName = ArkServerTests;
productReference = 25959A9A2E97F5E6003FA43E /* ArkServerTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
25959AA32E97F5E6003FA43E /* AllServerForMacUITests */ = {
25959AA32E97F5E6003FA43E /* ArkServerUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = 25959AB42E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "AllServerForMacUITests" */;
buildConfigurationList = 25959AB42E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "ArkServerUITests" */;
buildPhases = (
25959AA02E97F5E6003FA43E /* Sources */,
25959AA12E97F5E6003FA43E /* Frameworks */,
Expand All @@ -184,13 +184,13 @@
25959AA62E97F5E6003FA43E /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
25959AA72E97F5E6003FA43E /* AllServerForMacUITests */,
25959AA72E97F5E6003FA43E /* ArkServerUITests */,
);
name = AllServerForMacUITests;
name = ArkServerUITests;
packageProductDependencies = (
);
productName = AllServerForMacUITests;
productReference = 25959AA42E97F5E6003FA43E /* AllServerForMacUITests.xctest */;
productName = ArkServerUITests;
productReference = 25959AA42E97F5E6003FA43E /* ArkServerUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
Expand All @@ -216,7 +216,7 @@
};
};
};
buildConfigurationList = 25959A882E97F5E5003FA43E /* Build configuration list for PBXProject "AllServerForMac" */;
buildConfigurationList = 25959A882E97F5E5003FA43E /* Build configuration list for PBXProject "ArkServer" */;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
Expand All @@ -234,9 +234,9 @@
projectDirPath = "";
projectRoot = "";
targets = (
25959A8C2E97F5E5003FA43E /* AllServerForMac */,
25959A992E97F5E6003FA43E /* AllServerForMacTests */,
25959AA32E97F5E6003FA43E /* AllServerForMacUITests */,
25959A8C2E97F5E5003FA43E /* ArkServer */,
25959A992E97F5E6003FA43E /* ArkServerTests */,
25959AA32E97F5E6003FA43E /* ArkServerUITests */,
);
};
/* End PBXProject section */
Expand Down Expand Up @@ -292,12 +292,12 @@
/* Begin PBXTargetDependency section */
25959A9C2E97F5E6003FA43E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 25959A8C2E97F5E5003FA43E /* AllServerForMac */;
target = 25959A8C2E97F5E5003FA43E /* ArkServer */;
targetProxy = 25959A9B2E97F5E6003FA43E /* PBXContainerItemProxy */;
};
25959AA62E97F5E6003FA43E /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 25959A8C2E97F5E5003FA43E /* AllServerForMac */;
target = 25959A8C2E97F5E5003FA43E /* ArkServer */;
targetProxy = 25959AA52E97F5E6003FA43E /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
Expand Down Expand Up @@ -436,7 +436,8 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = AllServerForMac/Info.plist;
INFOPLIST_FILE = ArkServer/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Ark Server";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -469,7 +470,8 @@
ENABLE_HARDENED_RUNTIME = YES;
ENABLE_PREVIEWS = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = AllServerForMac/Info.plist;
INFOPLIST_FILE = ArkServer/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = "Ark Server";
INFOPLIST_KEY_NSHumanReadableCopyright = "";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -506,7 +508,7 @@
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AllServerForMac.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/AllServerForMac";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ArkServer.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ArkServer";
};
name = Debug;
};
Expand All @@ -527,7 +529,7 @@
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/AllServerForMac.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/AllServerForMac";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/ArkServer.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/ArkServer";
};
name = Release;
};
Expand All @@ -546,7 +548,7 @@
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = AllServerForMac;
TEST_TARGET_NAME = ArkServer;
};
name = Debug;
};
Expand All @@ -565,14 +567,14 @@
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;
SWIFT_VERSION = 5.0;
TEST_TARGET_NAME = AllServerForMac;
TEST_TARGET_NAME = ArkServer;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
25959A882E97F5E5003FA43E /* Build configuration list for PBXProject "AllServerForMac" */ = {
25959A882E97F5E5003FA43E /* Build configuration list for PBXProject "ArkServer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
25959AAC2E97F5E6003FA43E /* Debug */,
Expand All @@ -581,7 +583,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
25959AAE2E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "AllServerForMac" */ = {
25959AAE2E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "ArkServer" */ = {
isa = XCConfigurationList;
buildConfigurations = (
25959AAF2E97F5E6003FA43E /* Debug */,
Expand All @@ -590,7 +592,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
25959AB12E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "AllServerForMacTests" */ = {
25959AB12E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "ArkServerTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
25959AB22E97F5E6003FA43E /* Debug */,
Expand All @@ -599,7 +601,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
25959AB42E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "AllServerForMacUITests" */ = {
25959AB42E97F5E6003FA43E /* Build configuration list for PBXNativeTarget "ArkServerUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
25959AB52E97F5E6003FA43E /* Debug */,
Expand Down
Loading
Loading