v1.5.0 Release

This commit is contained in:
2024-02-22 23:56:53 +02:00
parent 1b96a031d2
commit bec08b56be
27 changed files with 968 additions and 825 deletions

57
.github/workflows/change_log.yml vendored Normal file
View File

@ -0,0 +1,57 @@
name: Generate Changelog
on:
release:
types: [published, edited]
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
defaults:
run:
shell: bash
jobs:
gen-changelog:
runs-on: ubuntu-latest
environment: genlog_gen_token
steps:
- uses: actions/checkout@v3
- name: install pkgs
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt update && sudo apt install -y zip grep sudo ruby rubygems git ssh ruby-dev gcc make
sudo $(which gem) install specific_install
- name: install github-changelog-generator
run: |
git clone https://github.com/ameir/github-changelog-generator.git -b v1.15.2-fixes
cd github-changelog-generator/
sudo $(which gem) build github_changelog_generator.gemspec
sudo $(which gem) install -N github_changelog_generator-1.15.2.gem
- name: run github-changelog-generator
env:
CHANGELOG_GEN_TOKEN: ${{ secrets.CHANGELOG_GEN_TOKEN }}
run: |
pwd
$(which ruby) $(which github_changelog_generator) -u Zoxcore -p Antidote \
--exclude-tags "1.0.0-rc.1,1.0.0-rc.2,1.0.0-rc.3,1.0.0-rc.4,1.1.0,1.2.0,1.2.0-build-2,1.3.0,1.3.1,1.3.2,1.3.3,1.3.4,1.3.5,,0.1,0.10.0,0.10.1,0.10.2,0.10.3,0.10.4,0.10.4-2,0.2,0.2.1,0.2.2,0.2.3,0.2.4,0.2.5,0.3.0,0.4.0,0.5.0,0.6.0,0.6.1," \
--token "$CHANGELOG_GEN_TOKEN"
- name: chmod
run: |
sudo chmod a+r /home/runner/work/Antidote/Antidote/CHANGELOG.md
ls -rattlh
- name: upload CHANGELOG file
uses: actions/upload-artifact@v3
with:
name: Changelog
path: |
/home/runner/work/Antidote/Antidote/CHANGELOG.md

95
.github/workflows/nightly.yml vendored Normal file
View File

@ -0,0 +1,95 @@
name: Nightly
on:
push:
paths-ignore:
- 'README.md'
# schedule:
# - cron: '0 0 * * *'
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
defaults:
run:
shell: bash
jobs:
macos-compile:
runs-on: macos-12
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Display the OS Version1
run: sw_vers -productVersion
- name: Display the OS Version2
run: system_profiler SPSoftwareDataType
- name: install pkgs
run: |
brew install ldid
- name: xcode info
run: |
ls -al
pwd
id -a
pod install
xcode-select --print-path
xcodebuild -list -workspace Antidote.xcworkspace
xcodebuild -list -project Antidote.xcodeproj
- name: xcode list destinations
run: |
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "name=NoSuchName" -destination-timeout 1 || echo 'NO ERR'
xcrun xctrace list devices || echo 'NOERR'
- name: xcode compile
run: |
echo "iPhone 11 Simulator"
set -x
id=`env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "name=NoSuchName" -destination-timeout 1 2>&1 | grep 'platform:iOS Simulator,' | grep 'name:iPhone 11 }' | tail -1 | sed -e 's#.* id:##'|sed -e 's#, OS:.*$##'` || echo 'NOERR'
echo $id
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "platform=iOS Simulator,id=$id"
- name: xcode compile for IOS
run: |
echo "IOS"
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -configuration Release archive -archivePath build/Antidote.xcarchive -scheme Antidote CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
ls -al ./build/Antidote.xcarchive
ldid -S $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote
echo codesign -fs "keyname" $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote || echo "dummy"
ldid -d $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote
./tools/package-ida.sh $(pwd)/build/Antidote.xcarchive $(pwd)/Antidote_unsigned.ipa
- name: check compile output
run: |
ls -al /Users/runner/Library/Developer/Xcode/DerivedData/Antidote-bhjjxfvewsypipfpuadvlmuxuzew/Build/Products/Debug-iphonesimulator/Antidote.app/
file /Users/runner/Library/Developer/Xcode/DerivedData/Antidote-bhjjxfvewsypipfpuadvlmuxuzew/Build/Products/Debug-iphonesimulator/Antidote.app/Antidote
- name: upload IPA file
uses: actions/upload-artifact@v4
with:
name: ipa
path: |
/Users/runner/work/Antidote/Antidote/Antidote_unsigned.ipa
- name: Rename artifact for release upload
if: contains(github.ref, 'refs/tags/v')
run: |
echo "RELEASE_VERSION1=${GITHUB_REF#refs/*/}"
echo "RELEASE_VERSION2=${{github.ref_name}}"
cp -v /Users/runner/work/Antidote/Antidote/Antidote_unsigned.ipa Antidote_unsigned_${GITHUB_REF#refs/*/}.ipa
- name: Upload to versioned release
if: contains(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
allowUpdates: true
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "Antidote_unsigned*.ipa"

77
.github/workflows/pull_request.yml vendored Normal file
View File

@ -0,0 +1,77 @@
name: PullRequest
on:
pull_request:
paths-ignore:
- 'README.md'
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
defaults:
run:
shell: bash
jobs:
macos-compile:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Display the OS Version1
run: sw_vers -productVersion
- name: Display the OS Version2
run: system_profiler SPSoftwareDataType
- name: install pkgs
run: |
brew install ldid
- name: xcode info
run: |
ls -al
pwd
id -a
pod install
xcode-select --print-path
xcodebuild -list -workspace Antidote.xcworkspace
xcodebuild -list -project Antidote.xcodeproj
- name: xcode list destinations
run: |
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "name=NoSuchName" -destination-timeout 1 || echo 'NO ERR'
xcrun xctrace list devices || echo 'NOERR'
- name: xcode compile
run: |
echo "iPhone 11 Simulator"
set -x
id=`env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "name=NoSuchName" -destination-timeout 1 2>&1 | grep 'platform:iOS Simulator,' | grep 'name:iPhone 11 }' | tail -1 | sed -e 's#.* id:##'|sed -e 's#, OS:.*$##'` || echo 'NOERR'
echo $id
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "platform=iOS Simulator,id=$id"
- name: xcode compile for IOS
run: |
echo "IOS"
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -configuration Release archive -archivePath build/Antidote.xcarchive -scheme Antidote CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
ls -al ./build/Antidote.xcarchive
ldid -S $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote
echo codesign -fs "keyname" $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote || echo "dummy"
ldid -d $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote
./tools/package-ida.sh $(pwd)/build/Antidote.xcarchive $(pwd)/Antidote_unsigned.ipa
- name: check compile output
run: |
ls -al /Users/runner/Library/Developer/Xcode/DerivedData/Antidote-bhjjxfvewsypipfpuadvlmuxuzew/Build/Products/Debug-iphonesimulator/Antidote.app/
file /Users/runner/Library/Developer/Xcode/DerivedData/Antidote-bhjjxfvewsypipfpuadvlmuxuzew/Build/Products/Debug-iphonesimulator/Antidote.app/Antidote
- name: upload IPA file
uses: actions/upload-artifact@v3
with:
name: ipa
path: |
/Users/runner/work/Antidote/Antidote/Antidote_unsigned.ipa

77
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,77 @@
name: Release
on:
release:
types: [published, edited]
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
defaults:
run:
shell: bash
jobs:
macos-compile:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Display the OS Version1
run: sw_vers -productVersion
- name: Display the OS Version2
run: system_profiler SPSoftwareDataType
- name: install pkgs
run: |
brew install ldid
- name: xcode info
run: |
ls -al
pwd
id -a
pod install
xcode-select --print-path
xcodebuild -list -workspace Antidote.xcworkspace
xcodebuild -list -project Antidote.xcodeproj
- name: xcode list destinations
run: |
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "name=NoSuchName" -destination-timeout 1 || echo 'NO ERR'
xcrun xctrace list devices || echo 'NOERR'
- name: xcode compile
run: |
echo "iPhone 11 Simulator"
set -x
id=`env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "name=NoSuchName" -destination-timeout 1 2>&1 | grep 'platform:iOS Simulator,' | grep 'name:iPhone 11 }' | tail -1 | sed -e 's#.* id:##'|sed -e 's#, OS:.*$##'` || echo 'NOERR'
echo $id
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -scheme Antidote -destination "platform=iOS Simulator,id=$id"
- name: xcode compile for IOS
run: |
echo "IOS"
env NSUnbufferedIO=YES xcodebuild -workspace ./Antidote.xcworkspace -configuration Release archive -archivePath build/Antidote.xcarchive -scheme Antidote CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED="NO" CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
ls -al ./build/Antidote.xcarchive
ldid -S $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote
echo codesign -fs "keyname" $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote || echo "dummy"
ldid -d $(pwd)/build/Antidote.xcarchive/Products/Applications/Antidote.app/Antidote
./tools/package-ida.sh $(pwd)/build/Antidote.xcarchive $(pwd)/Antidote_unsigned.ipa
- name: check compile output
run: |
ls -al /Users/runner/Library/Developer/Xcode/DerivedData/Antidote-bhjjxfvewsypipfpuadvlmuxuzew/Build/Products/Debug-iphonesimulator/Antidote.app/
file /Users/runner/Library/Developer/Xcode/DerivedData/Antidote-bhjjxfvewsypipfpuadvlmuxuzew/Build/Products/Debug-iphonesimulator/Antidote.app/Antidote
- name: upload IPA file
uses: actions/upload-artifact@v3
with:
name: ipa
path: |
/Users/runner/work/Antidote/Antidote/Antidote_unsigned.ipa

45
.github/workflows/upload_release.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Upload to Store
on:
# push:
# paths-ignore:
# - 'README.md'
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
defaults:
run:
shell: bash
jobs:
macos-compile:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- name: Display the OS Version1
run: sw_vers -productVersion
- name: Display the OS Version2
run: system_profiler SPSoftwareDataType
- name: install pkgs
run: |
sudo gem install fastlane -NV
- name: xcode info
run: |
ls -al
pwd
id -a
xcode-select --print-path
- name: check compile output
run: |
fastlane ios release