Fixed invalid python escape and added LOCAL_MIRROR arg to libSession

pull/988/head
Morgan Pretty 9 months ago
parent 3fe9ca1542
commit 703fbf4848

@ -572,7 +572,7 @@ public func serializedData() throws -> Data {
# if self.can_field_be_optional(field):
writer.add('guard proto.%s else {' % field.has_accessor_name() )
writer.push_indent()
writer.add('throw %s.invalidProtobuf(description: "\(NSStringFromClass(self)) missing required field: %s")' % ( writer.invalid_protobuf_error_name, field.name_swift, ) )
writer.add('throw %s.invalidProtobuf(description: "\\(NSStringFromClass(self)) missing required field: %s")' % ( writer.invalid_protobuf_error_name, field.name_swift, ) )
writer.pop_indent()
writer.add('}')
@ -648,7 +648,7 @@ public func serializedData() throws -> Data {
# description
writer.add('@objc public override var debugDescription: String {')
writer.push_indent()
writer.add('return "\(proto)"')
writer.add('return "\\(proto)"')
writer.pop_indent()
writer.add('}')
writer.newline()
@ -842,7 +842,7 @@ public func serializedData() throws -> Data {
writer.push_indent()
writer.add('var fields = [String]()')
for field in self.fields():
writer.add('fields.append("%s: \(proto.%s)")' % ( field.name_swift, field.name_swift, ) )
writer.add('fields.append("%s: \\(proto.%s)")' % ( field.name_swift, field.name_swift, ) )
writer.add('return "[" + fields.joined(separator: ", ") + "]"')
writer.pop_indent()
writer.add('}')

@ -222,7 +222,8 @@ for i in "${!TARGET_ARCHS[@]}"; do
-DBUILD_STATIC_DEPS=ON \
-DENABLE_VISIBILITY=ON \
-DSUBMODULE_CHECK=$submodule_check \
-DCMAKE_BUILD_TYPE=$build_type
-DCMAKE_BUILD_TYPE=$build_type \
-DLOCAL_MIRROR=https://oxen.rocks/deps
# Capture the exit status of the ./utils/static-bundle.sh command
EXIT_STATUS=$?

Loading…
Cancel
Save