Skip to content

Specify bundle identifier to avoid using sed #17

Specify bundle identifier to avoid using sed

Specify bundle identifier to avoid using sed #17

Workflow file for this run

name: Build Safari Extension
on:
push:
branches: ["main", "ios-ci"]
paths-ignore:
- "*.md"
jobs:
build:
permissions:
contents: write
name: Build for iOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install yarn
run: |-
curl -fsSL --create-dirs -o $HOME/bin/yarn \
https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js
chmod +x $HOME/bin/yarn
echo "$HOME/bin" >> $GITHUB_PATH
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: "yarn"
- name: Install dependencies
run: |
pip3 install setuptools
yarn install --immutable
- name: Build webextension
run: yarn run wp-build --env BROWSER=safari
- name: Convert to safari ext
working-directory: ./dist
run: |
xcrun safari-web-extension-converter . --ios-only --force --no-prompt --no-open --bundle-identifier me.octonezd.oldlander
- name: Build ipa
working-directory: ./dist/OldLander
run: |
ls
xcodebuild -list -project OldLander.xcodeproj
xcodebuild clean archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" \
CODE_SIGNING_ALLOWED="NO" -sdk iphoneos -destination 'generic/platform=iOS' -archivePath ./xc-arc -scheme OldLander
ls
xcodebuild -exportArchive -archivePath ./xc-arc -exportPath ./ipa/ -exportOptionsPlist $GITHUB_WORKSPACE/dev/exportOptions.plist
ls
- name: Archive production artifacts
if: always()
uses: actions/upload-artifact@v3
with:
name: ios-build
path: |
dist/OldLander/