Skip to content

Build and Release LowContrastMode Tweak #36

Build and Release LowContrastMode Tweak

Build and Release LowContrastMode Tweak #36

Workflow file for this run

name: Build and Release LowContrastMode Tweak
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y dpkg-dev build-essential debhelper devscripts dh-make fakeroot
- name: Create DEBIAN directory
run: |
mkdir -p dist/DEBIAN
chmod 755 dist/DEBIAN
- name: Move control file
run: |
mv control dist/DEBIAN/control
- name: Create compat file
run: |
echo "12" > dist/DEBIAN/compat
- name: Create Library Folder
run: mkdir -p dist/Library/LowContrastMode
- name: Copy Modified Files to Applications
run: |
mkdir -p dist/Applications/YouTube.app/
cp -r ./Tweak.xm dist/Library/LowContrastMode/
cp -r ./Tweak.h dist/Library/LowContrastMode/
cp -r ./LowContrastMode.plist dist/Library/LowContrastMode/
cp -r ./Makefile dist/Library/LowContrastMode/
- name: Build Debian Package
run: |
dpkg-deb --build dist com.arichorn.lowcontrastmode_1.3.0_iphoneos-arm.deb
- name: List files in dist directory
run: ls -l dist
- name: List files in current directory
run: ls -l
- name: Add Debian Package to Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git add com.arichorn.lowcontrastmode_1.3.0_iphoneos-arm.deb
git commit -m "Add Debian package for release"
git push
- name: Upload Debian Package
uses: actions/upload-artifact@v2
with:
name: com.arichorn.lowcontrastmode
path: com.arichorn.lowcontrastmode_1.3.0_iphoneos-arm.deb
- name: Debug Upload Debian Package
run: echo ${{ steps.upload_debian_package.outputs }}
- name: Create Release
id: create_release
uses: softprops/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: com.arichorn.lowcontrastmode_1.3.0_iphoneos-arm.deb
tag_name: v1.3.0
name: LowContrastMode v1.3.0 [iOS YouTube App]
draft: true
- name: Upload DEB to Release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: com.arichorn.lowcontrastmode_1.3.0_iphoneos-arm.deb
asset_name: com.arichorn.lowcontrastmode
asset_content_type: application/vnd.debian.binary-package