Skip to content

Commit

Permalink
部署脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeyang committed Oct 18, 2021
1 parent 23bbf41 commit 8d5d05e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ xcuserdata/
DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
Wireshark/pre_master_secret_key.log
release
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 4 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
git reset --hard
git pull
swift build
cp -r .build/debug/tlsserver ./release

0 comments on commit 8d5d05e

Please sign in to comment.