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)))"
9
9
10
10
cd $OPENGRAPH_ROOT
11
11
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
14
13
15
- # Copy to template file
16
- cp .build/debug/OpenGraph.build/OpenGraph.swiftinterface ./template.swiftinterface
14
+ cp .build/release/Modules/OpenGraph.swiftinterface ./template.swiftinterface
17
15
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
22
18
sed -i ' ' ' s/OpenGraph_SPI\.//g' ./template.swiftinterface
23
19
sed -i ' ' ' s/OpenGraph/AttributeGraph/g' ./template.swiftinterface
24
20
sed -i ' ' ' s/OG/AG/g' ./template.swiftinterface
You can’t perform that action at this time.
0 commit comments