From 36d3dd6ebb89cbc1f628a42dcb79821684548b85 Mon Sep 17 00:00:00 2001
From: FixeQ <134298056+FixeQyt@users.noreply.github.com>
Date: Fri, 12 Jul 2024 17:49:42 +0200
Subject: [PATCH] Remove build for arm64 in debian-linux and add apt mirror
---
.github/workflows/build.yml | 76 +++----------------------------------
1 file changed, 6 insertions(+), 70 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f87ef3a..6deeecb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -76,70 +76,6 @@ jobs:
name: SkEditorMac-arm64
path: SkEditorMac-arm64.zip
- build-linux-debian-arm64:
- runs-on: ubuntu-latest
- steps:
- - name: 📝 | Checkout repository
- uses: actions/checkout@v2
-
- - name: 📝 | Setup .NET
- uses: actions/setup-dotnet@v2
- with:
- dotnet-version: '8.0.x'
-
- - name: 🏗️ | Build and publish for Debian
- run: |
- cd SkEditor
- dotnet restore
- dotnet publish -c Release -r linux-arm64 -p:PublishSingleFile=true -p:PublishReadyToRun=true --no-self-contained --nologo -v q --property WarningLevel=0 /clp:ErrorsOnly /p:DebugType=None /p:DebugSymbols=false
-
- - name: 📌 | Install Dependencies
- run: |
- sudo apt update
- sudo apt install wget curl -y
-
- - name: 🛠️ | Create .deb structure
- run: |
- mkdir -p "SkEditorFiles/opt/SkEditor"
- cp -r SkEditor/bin/Release/net8.0/linux-arm64/publish/* "SkEditorFiles/opt/SkEditor/"
- mkdir -p "SkEditorFiles/usr/share/applications"
- cd SkEditorFiles/usr/share/applications
- wget -O SkEditor.desktop -r 'https://www.dropbox.com/scl/fi/v178sdzprbasul0xatg1y/SkEditor.desktop?rlkey=fq2nsuf9dyvlm7jhg9e5jugqu&st=6vlpjwjg&dl=1'
- wget -O /home/runner/work/SkEditor/SkEditor/SkEditorFiles/opt/SkEditor/SkEditor.png https://raw.githubusercontent.com/SkEditorTeam/SkEditor/main/SkEditor.png
- mkdir -p mime/packages
- cd mime/packages
- wget -O skript.xml -r 'https://www.dropbox.com/scl/fi/5fh65lwl5n352tik2hl5p/skript.xml?rlkey=kikicagf306vd1b2lcaenyjyu&st=i6abr09z&dl=1'
- mkdir -p "/home/runner/work/SkEditor/SkEditor/SkEditorFiles/DEBIAN"
- cd /home/runner/work/SkEditor/SkEditor/SkEditorFiles/DEBIAN
- pwd
- wget -O control -r 'https://www.dropbox.com/scl/fi/tep20aykrghy2aamc1m77/control-arm64?rlkey=bhfztntq2tzzbtiv3xv9oea6j&dl=1'
- echo "exported_ver=\$(curl -s \"https://camo.githubusercontent.com/024e74589d307c8cbe664b87c58cf65e2b62587aec02459d998719874ea7b5eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f536b456469746f725465616d2f536b456469746f723f636f6c6f723d253233376133346562266c6162656c3d76657273696f6e267374796c653d666c61742d737175617265\" | grep -oP '(?<=
).*?(?=)' | sed 's/v\([0-9]\)/\1/') && exported_ver=\"\${exported_ver^}\"" >> getver
- echo "echo \"\$exported_ver-gh-b${GITHUB_RUN_ID}\" >> control" >> getver
- bash getver
- rm -f getver
- echo "Maintainer: Notro" >> control
- wget -O postrm -r 'https://www.dropbox.com/scl/fi/qni5y6fahxrz80ttenct5/postrm?rlkey=zn88axbghrwxokxtx1i5hhbgr&dl=1'
- wget -O preinst -r 'https://www.dropbox.com/scl/fi/d3v6523n16ndetbg7x5yh/preinst?rlkey=xfrk7go1gxl8zhwt0cswrihjo&st=rwyq4bpo&dl=1'
- wget -O postinst -r 'https://www.dropbox.com/scl/fi/2l1dx0vx3yelfllw7wclk/postinst?rlkey=wx815p6ribc06752t3k6m73qr&st=yvsopgtj&dl=1'
-
-
- - name: 🔑 | Fix Permissions
- run: |
- cd /home/runner/work/SkEditor/SkEditor/SkEditorFiles/DEBIAN
- chmod 0755 *
-
- - name: 📦 | Create .deb package
- run: |
- cd /home/runner/work/SkEditor/SkEditor/
- pwd
- dpkg-deb -b SkEditorFiles SkEditor-arm64.deb
-
- - name: 📤 | Upload artifacts
- uses: actions/upload-artifact@v2
- with:
- name: Debian-based operating systems (arm64)
- path: SkEditor-arm64.deb
-
build-linux-debian-x64:
runs-on: ubuntu-latest
steps:
@@ -176,7 +112,7 @@ jobs:
mkdir -p "/home/runner/work/SkEditor/SkEditor/SkEditorFilesx/DEBIAN"
cd /home/runner/work/SkEditor/SkEditor/SkEditorFilesx/DEBIAN
pwd
- wget -O control -r 'https://www.dropbox.com/scl/fi/1m8evp1rh56zon4s4fwsk/control-x64?rlkey=a8dyx3bpss9bxpjgpwi4wrasp&st=5uyxnsj9&dl=1'
+ wget -O control -r 'https://www.dropbox.com/scl/fi/yxzr40tixcdkybrta0isx/control?rlkey=0kjvp2h5dpm6zq2ekzi9spj6s&st=xc0ypf60&dl=1'
echo "exported_ver=\$(curl -s \"https://camo.githubusercontent.com/024e74589d307c8cbe664b87c58cf65e2b62587aec02459d998719874ea7b5eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f536b456469746f725465616d2f536b456469746f723f636f6c6f723d253233376133346562266c6162656c3d76657273696f6e267374796c653d666c61742d737175617265\" | grep -oP '(?<=).*?(?=)' | sed 's/v\([0-9]\)/\1/') && exported_ver=\"\${exported_ver^}\"" >> getver
echo "echo \"\$exported_ver-gh-b${GITHUB_RUN_ID}\" >> control" >> getver
bash getver
@@ -195,13 +131,13 @@ jobs:
run: |
cd /home/runner/work/SkEditor/SkEditor/
pwd
- dpkg-deb -b SkEditorFilesx SkEditor-x64.deb
+ dpkg-deb -Zgzip -b SkEditorFilesx SkEditor-x64.deb
- name: 📤 | Upload artifacts
- uses: actions/upload-artifact@v2
- with:
- name: Debian-based operating systems (x64)
- path: SkEditor-x64.deb
+ env:
+ TOKEN: ${{ secrets.APT_REPO_TOKEN }}
+ run: |
+ curl --header "Authorization: Bearer $env:TOKEN" --form "package=@SkEditor-x64.deb" --form "distribution=all" https://fixeq.baltorepo.com/skeditor/skeditor/upload/
build-linux:
runs-on: ubuntu-latest