|
722 | 722 | </plugins> |
723 | 723 | </build> |
724 | 724 | </profile> |
725 | | - |
726 | 725 | <profile> |
727 | | - <id>generate-mac</id> |
| 726 | + <id>generate-mac-amd64</id> |
728 | 727 | <activation> |
729 | 728 | <os> |
730 | 729 | <family>mac</family> |
| 730 | + <arch>x86_64</arch> |
731 | 731 | </os> |
732 | 732 | </activation> |
733 | 733 | <properties> |
|
753 | 753 | <environmentVariables> |
754 | 754 | </environmentVariables> |
755 | 755 | <options> |
| 756 | + <option>-DPROJECT_ARCH=x86_64</option> |
756 | 757 | <option>-DCMAKE_BUILD_TYPE=Release</option> |
757 | 758 | <option>-DJCEF_VERSION=${project.version}</option> |
758 | 759 | <option>-DJCEF_COMMIT_NUMBER=${git.total.commit.count}</option> |
759 | 760 | <option>-DJCEF_COMMIT_HASH=${git.commit.id}</option> |
760 | | - </options> |
| 761 | + <option>-DENACTOR_CODE_SIGN_IDENTITY=${enactor.code.sign.identity}</option> |
| 762 | + <option>-DENACTOR_DEVELOPMENT_TEAM=${enactor.development.team}</option> |
| 763 | + </options> |
761 | 764 | </configuration> |
762 | 765 | </execution> |
763 | 766 | <execution> |
|
839 | 842 | </execution> |
840 | 843 | </executions> |
841 | 844 | <configuration> |
842 | | - <finalName>chromium-binaries-mac</finalName> |
| 845 | + <finalName>chromium-binaries-${distribution.arch}</finalName> |
843 | 846 | <descriptors> |
844 | 847 | <descriptor>assemble-mac-os.xml</descriptor> |
845 | 848 | </descriptors> |
|
876 | 879 | <goal>deploy-file</goal> |
877 | 880 | </goals> |
878 | 881 | <configuration> |
879 | | - <file>${basedir}/target/chromium-binaries-mac.zip</file> |
| 882 | + <file>${basedir}/target/chromium-binaries-${distribution.arch}.zip</file> |
880 | 883 | <repositoryId>${repository.id}</repositoryId> |
881 | 884 | <url>${repository.url}</url> |
882 | 885 | <groupId>com.enactor.chromium</groupId> |
|
890 | 893 | </plugins> |
891 | 894 | </build> |
892 | 895 | </profile> |
| 896 | + <profile> |
| 897 | + <id>generate-mac-arm64</id> |
| 898 | + <activation> |
| 899 | + <os> |
| 900 | + <family>mac</family> |
| 901 | + <arch>arm64</arch> |
| 902 | + </os> |
| 903 | + </activation> |
| 904 | + <properties> |
| 905 | + <distribution.folder>macosx64</distribution.folder> |
| 906 | + <distribution.arch>macos-arm64</distribution.arch> |
| 907 | + </properties> |
| 908 | + <build> |
| 909 | + <plugins> |
| 910 | + <plugin> |
| 911 | + <groupId>com.googlecode.cmake-maven-project</groupId> |
| 912 | + <artifactId>cmake-maven-plugin</artifactId> |
| 913 | + <executions> |
| 914 | + <execution> |
| 915 | + <id>cmake-generate-mac</id> |
| 916 | + <goals> |
| 917 | + <goal>generate</goal> |
| 918 | + </goals> |
| 919 | + <configuration> |
| 920 | + <sourcePath>${basedir}</sourcePath> |
| 921 | + <targetPath>${basedir}/jcef_build</targetPath> |
| 922 | + <generator>Xcode</generator> |
| 923 | + <classifier>mac-x86_64</classifier> |
| 924 | + <environmentVariables> |
| 925 | + </environmentVariables> |
| 926 | + <options> |
| 927 | + <option>-DPROJECT_ARCH=arm64</option> |
| 928 | + <option>-DCMAKE_BUILD_TYPE=Release</option> |
| 929 | + <option>-DJCEF_VERSION=${project.version}</option> |
| 930 | + <option>-DJCEF_COMMIT_NUMBER=${git.total.commit.count}</option> |
| 931 | + <option>-DJCEF_COMMIT_HASH=${git.commit.id}</option> |
| 932 | + <option>-DENACTOR_CODE_SIGN_IDENTITY=${enactor.code.sign.identity}</option> |
| 933 | + <option>-DENACTOR_DEVELOPMENT_TEAM=${enactor.development.team}</option> |
| 934 | + </options> |
| 935 | + </configuration> |
| 936 | + </execution> |
| 937 | + <execution> |
| 938 | + <id>cmake-compile-mac</id> |
| 939 | + <goals> |
| 940 | + <goal>compile</goal> |
| 941 | + </goals> |
| 942 | + <configuration> |
| 943 | + <config>Release</config> |
| 944 | + <projectDirectory>${basedir}/jcef_build</projectDirectory> |
| 945 | + <classifier>mac-x86_64</classifier> |
| 946 | + <environmentVariables> |
| 947 | + </environmentVariables> |
| 948 | + </configuration> |
| 949 | + </execution> |
| 950 | + </executions> |
| 951 | + </plugin> |
| 952 | + <plugin> |
| 953 | + <artifactId>maven-antrun-plugin</artifactId> |
| 954 | + <executions> |
| 955 | + <execution> |
| 956 | + <id>package</id> |
| 957 | + <phase>package</phase> |
| 958 | + <goals> |
| 959 | + <goal>run</goal> |
| 960 | + </goals> |
| 961 | + <configuration> |
| 962 | + <tasks> |
| 963 | + <exec dir="${basedir}/tools" executable="/bin/bash"> |
| 964 | + <arg value="make_distrib.sh" /> |
| 965 | + <arg value="macosx64" /> |
| 966 | + </exec> |
| 967 | + </tasks> |
| 968 | + </configuration> |
| 969 | + </execution> |
| 970 | + </executions> |
| 971 | + </plugin> |
| 972 | + <plugin> |
| 973 | + <artifactId>maven-install-plugin</artifactId> |
| 974 | + <executions> |
| 975 | + <execution> |
| 976 | + <id>deploy-jcef</id> |
| 977 | + <phase>install</phase> |
| 978 | + <goals> |
| 979 | + <goal>install-file</goal> |
| 980 | + </goals> |
| 981 | + <configuration> |
| 982 | + <file>${basedir}/jcef_build/native/Release/jcef.jar/</file> |
| 983 | + <groupId>com.enactor.core</groupId> |
| 984 | + <artifactId>jcef</artifactId> |
| 985 | + <version>${project.version}</version> |
| 986 | + <packaging>jar</packaging> |
| 987 | + </configuration> |
| 988 | + </execution> |
| 989 | + <execution> |
| 990 | + <id>deploy-jcef-test</id> |
| 991 | + <phase>install</phase> |
| 992 | + <goals> |
| 993 | + <goal>install-file</goal> |
| 994 | + </goals> |
| 995 | + <configuration> |
| 996 | + <file>${basedir}/jcef_build/native/Release/jcef-tests.jar/</file> |
| 997 | + <groupId>com.enactor.core</groupId> |
| 998 | + <artifactId>jcef-tests</artifactId> |
| 999 | + <version>${project.version}</version> |
| 1000 | + <packaging>jar</packaging> |
| 1001 | + </configuration> |
| 1002 | + </execution> |
| 1003 | + </executions> |
| 1004 | + </plugin> |
| 1005 | + <plugin> |
| 1006 | + <artifactId>maven-assembly-plugin</artifactId> |
| 1007 | + <executions> |
| 1008 | + <execution> |
| 1009 | + <phase>package</phase> |
| 1010 | + <goals> |
| 1011 | + <goal>single</goal> |
| 1012 | + </goals> |
| 1013 | + </execution> |
| 1014 | + </executions> |
| 1015 | + <configuration> |
| 1016 | + <finalName>chromium-binaries-${distribution.arch}</finalName> |
| 1017 | + <descriptors> |
| 1018 | + <descriptor>assemble-mac-os.xml</descriptor> |
| 1019 | + </descriptors> |
| 1020 | + <appendAssemblyId>false</appendAssemblyId> |
| 1021 | + </configuration> |
| 1022 | + </plugin> |
| 1023 | + <plugin> |
| 1024 | + <groupId>org.apache.maven.plugins</groupId> |
| 1025 | + <artifactId>maven-deploy-plugin</artifactId> |
| 1026 | + <configuration> |
| 1027 | + <skip>${skip.deploy}</skip> |
| 1028 | + </configuration> |
| 1029 | + <executions> |
| 1030 | + <execution> |
| 1031 | + <id>deploy-jcef</id> |
| 1032 | + <phase>deploy</phase> |
| 1033 | + <goals> |
| 1034 | + <goal>deploy-file</goal> |
| 1035 | + </goals> |
| 1036 | + <configuration> |
| 1037 | + <file>${basedir}/jcef_build/native/Release/jcef.jar</file> |
| 1038 | + <repositoryId>${repository.id}</repositoryId> |
| 1039 | + <url>${repository.url}</url> |
| 1040 | + <groupId>com.enactor.core</groupId> |
| 1041 | + <artifactId>jcef</artifactId> |
| 1042 | + <version>${project.version}</version> |
| 1043 | + <packaging>jar</packaging> |
| 1044 | + </configuration> |
| 1045 | + </execution> |
| 1046 | + <execution> |
| 1047 | + <id>deploy-native-binaries</id> |
| 1048 | + <phase>deploy</phase> |
| 1049 | + <goals> |
| 1050 | + <goal>deploy-file</goal> |
| 1051 | + </goals> |
| 1052 | + <configuration> |
| 1053 | + <file>${basedir}/target/chromium-binaries-${distribution.arch}.zip</file> |
| 1054 | + <repositoryId>${repository.id}</repositoryId> |
| 1055 | + <url>${repository.url}</url> |
| 1056 | + <groupId>com.enactor.chromium</groupId> |
| 1057 | + <artifactId>mac-binaries</artifactId> |
| 1058 | + <version>${project.version}</version> |
| 1059 | + <packaging>zip</packaging> |
| 1060 | + </configuration> |
| 1061 | + </execution> |
| 1062 | + </executions> |
| 1063 | + </plugin> |
| 1064 | + </plugins> |
| 1065 | + </build> |
| 1066 | + </profile> |
| 1067 | + |
| 1068 | + |
893 | 1069 | </profiles> |
894 | 1070 | <dependencies> |
895 | 1071 | <dependency> |
|
0 commit comments