Files
ipx/ios/scripts/proto.sh
rays 7a059f4460 The app's wire code has Up Next's, playlists' and the shelf's messages (#473, #474, #476)
ipx.proto gained FeedRow.podcast, the playlist messages and Up Next's
queue on the listening branch without ios/scripts/proto.sh being run,
since this machine had no generator. It has one now: protoc from apt and
protoc-gen-swift 1.41.0 built from source in Swift's image, both in
/src/install.sh. directory.pb.swift comes out byte for byte as the Mac
made it, so the Linux build of the generator writes the same code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RqkrVAJFkEgz9cXG3jG1Zy
2026-11-19 08:06:38 -05:00

13 lines
723 B
Bash
Executable File

#!/bin/sh
# The app's protobuf messages (#469), generated from the .proto files ipx serves them by
# (crates/wire/proto) into Sources/Wire, which is committed: XcodeGen and Xcode build it as it is,
# with no protoc in the build. Run again after a change to those files. Needs protoc and
# protoc-gen-swift, the generator at the version of the SwiftProtobuf package in project.yml, which
# refuses code from another: on a Mac `brew install protobuf swift-protobuf`, here /src/install.sh.
set -eu
cd "$(dirname "$0")/.."
proto=../crates/wire/proto
rm -f Sources/Wire/*.pb.swift
protoc -I "$proto" --swift_out=Sources/Wire --swift_opt=Visibility=Internal "$proto/ipx.proto" "$proto/directory.proto"
protoc-gen-swift --version