From 8d5d05ed57ab369686c46b2e86432658f8c625d9 Mon Sep 17 00:00:00 2001 From: Rake Yang Date: Mon, 18 Oct 2021 09:52:10 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + Package.swift | 2 +- deploy.sh | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 deploy.sh diff --git a/.gitignore b/.gitignore index e69a9dd..943449c 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ xcuserdata/ DerivedData/ .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata Wireshark/pre_master_secret_key.log +release diff --git a/Package.swift b/Package.swift index 9d455a0..1c07dc2 100644 --- a/Package.swift +++ b/Package.swift @@ -8,7 +8,7 @@ let package = Package( platforms: [.macOS(.v11), .iOS(.v10)], products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. - .executable(name: "server", targets: ["SimpleHTTPServer"]), + .executable(name: "tlsserver", targets: ["SimpleHTTPServer"]), .library(name: "PracticeTLS", targets: ["PracticeTLS"]), ], dependencies: [ diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..0305ce4 --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +git reset --hard +git pull +swift build +cp -r .build/debug/tlsserver ./release \ No newline at end of file