* merge get-cc-url into get-version * add `get-cc` * remove `apt update` * rename `get-version` -> `get-info` * rm unnecessary file * - Add support for ios - Fix missing top folder for macos * - Fix directory names * - Fix with binary r/w * iOS的plist文件先转换为明文 * add IOS * 整合新action * Finishing touch * Update action.yml * Test chmod * - Xcode build test * - Build with default keychain * - Test iOS only * - Use macos-11 * - Change keychain operations' sequence * - Allow provisioning updates * - Set build directory * - Specify build path * - Pack bare app * - Add quiet option * 测试:输出touchrelease位置 * - Test with ad hoc cert * - Fix wrong variable * - Use Release instead of Distribution * - Chmod CCloader to add execute permission * 继续测试ios触屏问题 * 继续测试ios触屏问题 * - Use macos latest - Re-enable other runs * - Sign CCloader after build * - Remove redundant inputs in build.yml * - Install test * - Export test * - install test * - Try fastlane * - Use builtin ruby * - CI Test * - Update python script to fix ios versioning * - Use static lib * - Test static cc * - Fix locations * Update readme.md Co-authored-by: Imple Lee <80144331+ImpleLee@users.noreply.github.com> Co-authored-by: Trebor-Huang <2300936257@qq.com> Co-authored-by: Trebor Huang <41145779+Trebor-Huang@users.noreply.github.com> Co-authored-by: YunyushuLiu <kunluntree@qq.com> Co-authored-by: MrZ626 <1046101471@qq.com> Co-authored-by: 梦飞翔 <1149761294@qq.com>
49 lines
1.7 KiB
YAML
49 lines
1.7 KiB
YAML
name: 'build Mac OS'
|
|
description: 'build Mac OS package'
|
|
inputs:
|
|
name:
|
|
required: true
|
|
icon:
|
|
required: true
|
|
MACOS_CERTIFICATE:
|
|
required: true
|
|
MACOS_CERTIFICATE_ID:
|
|
required: true
|
|
MACOS_CERTIFICATE_PWD:
|
|
required: true
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: ./.github/actions/build-love
|
|
|
|
- name: Download template
|
|
uses: ./.github/actions/get-unzip
|
|
with:
|
|
url: https://github.com/26F-Studio/Techmino-CI-template/releases/download/1.0/macos.app.zip
|
|
|
|
- name: Download ColdClear
|
|
uses: ./.github/actions/get-cc
|
|
with:
|
|
arch: macOS
|
|
- name: Modify template
|
|
shell: bash
|
|
run: |
|
|
python3 .github/workflows/updateVersion.py -T macOS -N ${{ inputs.name }}
|
|
mv Techmino.love Techmino.app/Contents/Resources
|
|
mv CCloader.dylib Techmino.app/Contents/Frameworks
|
|
mv ${{ inputs.icon }} Techmino.app/Contents/Resources/iconfile.icns
|
|
- name: Codesign executable
|
|
# In secrets:
|
|
# - MACOS_CERTIFICATE: the *.p12 Developer ID Certificate, encoded in base64
|
|
# - MACOS_CERTIFICATE_PWD: The password
|
|
shell: bash
|
|
run: |
|
|
echo ${{ inputs.MACOS_CERTIFICATE }} | base64 --decode > certificate.p12
|
|
security create-keychain -p Techminohaowan build.keychain
|
|
security default-keychain -s build.keychain
|
|
security unlock-keychain -p Techminohaowan build.keychain
|
|
security import certificate.p12 -k build.keychain -P ${{ inputs.MACOS_CERTIFICATE_PWD }} -T /usr/bin/codesign
|
|
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k Techminohaowan build.keychain
|
|
/usr/bin/codesign --force --deep -s ${{ inputs.MACOS_CERTIFICATE_ID }} Techmino.app -v
|
|
security delete-keychain build.keychain
|