File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -9,16 +9,12 @@ OPENGRAPH_ROOT="$(dirname $(dirname $(filepath $0)))"
99
1010cd $OPENGRAPH_ROOT
1111
12- # Build the swiftinterface file
13- ./Scripts/build_swiftinterface.sh
12+ swift build -c release -Xswiftc -emit-module-interface -Xswiftc -enable-library-evolution -Xswiftc -no-verify-emitted-module-interface -Xswiftc -package-name -Xswiftc OpenGraph -Xswiftc -Osize
1413
15- # Copy to template file
16- cp .build/debug/OpenGraph.build/OpenGraph.swiftinterface ./template.swiftinterface
14+ cp .build/release/Modules/OpenGraph.swiftinterface ./template.swiftinterface
1715
18- sed -i ' ' ' 1,5d' ./template.swiftinterface
19- sed -i ' ' ' 1i\
20- @_exported public import AttributeGraph
21- ' ./template.swiftinterface
16+ sed -i ' ' ' 1,4d' ./template.swiftinterface
17+ sed -i ' ' ' s/@_exported public import AttributeGraph/@_exported public import OpenGraph_SPI/g' ./template.swiftinterface
2218sed -i ' ' ' s/OpenGraph_SPI\.//g' ./template.swiftinterface
2319sed -i ' ' ' s/OpenGraph/AttributeGraph/g' ./template.swiftinterface
2420sed -i ' ' ' s/OG/AG/g' ./template.swiftinterface
You can’t perform that action at this time.
0 commit comments