sdlan/swift_pb.sh
2026-04-09 11:30:13 +08:00

16 lines
404 B
Bash
Executable File

#! /bin/sh
rm -rf tmp
mkdir tmp
cp proto/sdlan.proto tmp/sdlan_pb.proto
cp proto/tun.proto tmp/tun_pb.proto
cd tmp
protoc sdlan_pb.proto --swift_out=.
cp sdlan_pb.pb.swift SDLMessage.pb.swift
cp SDLMessage.pb.swift /usr/local/code/macos/punchnet/Tun/Punchnet/
protoc tun_pb.proto --swift_out=.
cp tun_pb.pb.swift TunMessage.pb.swift
cp TunMessage.pb.swift /usr/local/code/macos/punchnet/Tun/Punchnet/