forked from boehs/Lightly
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #76 from DeltaCopy/Darkly
Refactor code to change name to darkly
- Loading branch information
Showing
240 changed files
with
26,640 additions
and
27,142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Maintainer: DeltaCopy <[email protected]> | ||
# Description: Builds Lightly from https://github.com/Bali10050/Lightly | ||
# Description: Builds Darkly from https://github.com/Bali10050/Darkly | ||
# Used inside Github Action workflow archlinux-ci | ||
|
||
# basic info | ||
dev="Bali10050" | ||
pkgname="lightly-qt6" | ||
pkgname="darkly" | ||
pkgver= # change this to match the name of the release tag you want to build from | ||
pkgrel=1 | ||
pkgdesc="Bali10050's fork of Lightly (A modern style for qt applications)" | ||
url="https://github.com/$dev/lightly" | ||
pkgdesc="Bali10050's fork of Darkly (A modern style for qt applications)" | ||
url="https://github.com/$dev/Darkly" | ||
arch=('x86_64' 'aarch64') | ||
license=("GPL-2.0-or-later") | ||
pkgdir="$srcdir/fakeinstall_kf6" | ||
|
@@ -54,10 +54,10 @@ depends=("${depends_kf6[@]}" "${depends_kf5[@]}") | |
conflicts=( | ||
lightly-kf6 | ||
lightly-qt | ||
lightly-qt6 | ||
lightly-qt6-bin | ||
) | ||
|
||
provides=("lightly-qt6") | ||
|
||
pkgver() { | ||
cd "$srcdir/$pkgname.git" | ||
git describe --tags --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
# Build Lightly and publish release | ||
name: Lightly build & release | ||
# Build Darkly and publish release | ||
name: Darkly build & release | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
env: | ||
BUILD_TYPE: Release | ||
BUILD_WS: build_kf6 | ||
BUILD_REPO: https://github.com/Bali10050/Lightly/ | ||
BUILD_REPO: https://github.com/Bali10050/Darkly | ||
jobs: | ||
release-ci: | ||
runs-on: ubuntu-latest | ||
|
@@ -24,7 +24,7 @@ jobs: | |
- name: Install build dependencies | ||
run: sudo apt-get install git -y -qq | ||
- name: Get latest Lightly release tag | ||
- name: Get latest Darkly release tag | ||
id: step_getlatest_tag | ||
run: | | ||
# get latest release tag from remote | ||
|
@@ -42,8 +42,8 @@ jobs: | |
- name: Download tag asset | ||
id: step_get_asset | ||
run: | | ||
curl -L $BUILD_REPO/archive/refs/tags/${{ env.LATEST_TAG }}.tar.gz --output lightly-${{ env.LATEST_TAG }}.tar.gz | ||
echo "ASSET=lightly-${{ env.LATEST_TAG }}.tar.gz" >> "$GITHUB_OUTPUT" | ||
curl -L $BUILD_REPO/archive/refs/tags/${{ env.LATEST_TAG }}.tar.gz --output darkly-${{ env.LATEST_TAG }}.tar.gz | ||
echo "ASSET=darkly-${{ env.LATEST_TAG }}.tar.gz" >> "$GITHUB_OUTPUT" | ||
- uses: actions/cache/[email protected] | ||
id: cache | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Fedora 41/40 | ||
# Build Lightly from release tag and publish .rpm package | ||
# Build Darkly from release tag and publish .rpm package | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -14,7 +14,7 @@ on: | |
required: true | ||
type: string | ||
env: | ||
SPEC_FILE: $GITHUB_WORKSPACE/.github/assets/specs/lightly.spec | ||
SPEC_FILE: $GITHUB_WORKSPACE/.github/assets/specs/darkly.spec | ||
jobs: | ||
build: | ||
strategy: | ||
|
@@ -29,7 +29,7 @@ jobs: | |
with: | ||
repository: ${{ github.repository }} | ||
sparse-checkout: | | ||
.github/assets/specs/lightly.spec | ||
.github/assets/specs/darkly.spec | ||
- name: Update tag version inside spec file | ||
run: sed -i "s/.*%define release_tag.*/%define release_tag ${{ inputs.version }}/" ${{ env.SPEC_FILE }} | ||
- uses: actions/cache/[email protected] | ||
|
@@ -59,13 +59,13 @@ jobs: | |
- name: Build rpm binary package | ||
run: | | ||
cd $HOME/rpmbuild/SPECS | ||
rpmbuild -bb --quiet lightly.spec | ||
rpmbuild -bb --quiet darkly.spec | ||
rpm_file=$(find $HOME/rpmbuild/RPMS/x86_64 -name "*.rpm*" ! -name "*src*" ! -name "*debug*") | ||
echo "rpm_file = $rpm_file" | ||
source /etc/os-release | ||
echo "Version ID = $VERSION_ID" | ||
mv $rpm_file $HOME/rpmbuild/RPMS/x86_64/lightly-${{ inputs.version }}.fc$VERSION_ID.x86_64.rpm | ||
echo "RPM_ASSET=$HOME/rpmbuild/RPMS/x86_64/lightly-${{ inputs.version }}.fc$VERSION_ID.x86_64.rpm" >> "$GITHUB_ENV" | ||
mv $rpm_file $HOME/rpmbuild/RPMS/x86_64/darkly-${{ inputs.version }}.fc$VERSION_ID.x86_64.rpm | ||
echo "RPM_ASSET=$HOME/rpmbuild/RPMS/x86_64/darkly-${{ inputs.version }}.fc$VERSION_ID.x86_64.rpm" >> "$GITHUB_ENV" | ||
- name: Release | ||
uses: softprops/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Kubuntu | ||
# Requires a custom docker container | ||
# The Dockerfile is inside .github/assets/docker/kubuntu | ||
# Build Lightly from release tag and publish .deb package | ||
# Build Darkly from release tag and publish .deb package | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -34,18 +34,18 @@ jobs: | |
libkf6windowsystem-dev libkf6kcmutils-dev libkirigami-dev | ||
- name: Extract release tarball | ||
run: tar xvf ${{ inputs.cache-file-path }} | ||
- name: Build Lightly | ||
- name: Build Darkly | ||
run: | | ||
cmake -B build_kf6 -DBUILD_TESTING=OFF -Wno-dev -S Lightly-${{inputs.version}} | ||
cmake -B build_kf6 -DBUILD_TESTING=OFF -Wno-dev -S Darkly-${{inputs.version}} | ||
cmake --build build_kf6 -j $(nproc) | ||
- name: Create deb package | ||
id: create_deb_package | ||
run: | | ||
cd build_kf6 | ||
checkinstall -D --pkgname lightly --pkgversion ${{ inputs.version }} --nodoc --fstrans=no --default | ||
checkinstall -D --pkgname darkly --pkgversion ${{ inputs.version }} --nodoc --fstrans=no --default | ||
deb_file=$(find . -name "*.deb*") | ||
test ! -z $deb_file && mv $deb_file ${{ env.GITHUB_WORKSPACE}}/lightly_${{ inputs.version }}_kubuntu_amd64.deb | ||
echo "DEB_ASSET=${{ env.GITHUB_WORKSPACE}}/lightly_${{ inputs.version }}_kubuntu_amd64.deb" >> "$GITHUB_OUTPUT" | ||
test ! -z $deb_file && mv $deb_file ${{ env.GITHUB_WORKSPACE}}/darkly_${{ inputs.version }}_kubuntu_amd64.deb | ||
echo "DEB_ASSET=${{ env.GITHUB_WORKSPACE}}/darkly_${{ inputs.version }}_kubuntu_amd64.deb" >> "$GITHUB_OUTPUT" | ||
- name: Release | ||
uses: softprops/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# KDE Neon | ||
# Requires a custom docker container | ||
# The Dockerfile is inside .github/assets/docker/kde-neon | ||
# Build Lightly from release tag and publish .deb package | ||
# Build Darkly from release tag and publish .deb package | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -15,7 +15,7 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: deltacopy/lightly-kde-neon:0.1 | ||
container: deltacopy/darkly-kde-neon:0.1 | ||
steps: | ||
- uses: actions/cache/[email protected] | ||
id: cache | ||
|
@@ -37,18 +37,18 @@ jobs: | |
- name: Extract release tarball | ||
run: | | ||
tar xvf ${{ inputs.cache-file-path }} | ||
- name: Build Lightly | ||
- name: Build Darkly | ||
run: | | ||
cmake -B build_kf6 -DBUILD_TESTING=OFF -Wno-dev -S Lightly-${{inputs.version}} | ||
cmake -B build_kf6 -DBUILD_TESTING=OFF -Wno-dev -S Darkly-${{inputs.version}} | ||
cmake --build build_kf6 -j $(nproc) | ||
- name: Create deb package | ||
id: create_deb_package | ||
run: | | ||
cd build_kf6 | ||
checkinstall -D --pkgname lightly --pkgversion ${{ inputs.version }} --nodoc --default | ||
checkinstall -D --pkgname darkly --pkgversion ${{ inputs.version }} --nodoc --default | ||
deb_file=$(find . -name "*.deb*") | ||
test ! -z $deb_file && mv $deb_file /home/neon/lightly_${{ inputs.version }}_kdeneon_amd64.deb | ||
echo "DEB_ASSET=/home/neon/lightly_${{ inputs.version }}_kdeneon_amd64.deb" >> "$GITHUB_OUTPUT" | ||
test ! -z $deb_file && mv $deb_file /home/neon/darkly_${{ inputs.version }}_kdeneon_amd64.deb | ||
echo "DEB_ASSET=/home/neon/darkly_${{ inputs.version }}_kdeneon_amd64.deb" >> "$GITHUB_OUTPUT" | ||
- name: Release | ||
uses: softprops/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# openSUSE Tumbleweed | ||
# Build Lightly from release tag and publish .rpm package | ||
# Build Darkly from release tag and publish .rpm package | ||
|
||
on: | ||
workflow_call: | ||
|
@@ -11,7 +11,7 @@ on: | |
required: true | ||
type: string | ||
env: | ||
SPEC_FILE: $GITHUB_WORKSPACE/.github/assets/specs/lightly.spec | ||
SPEC_FILE: $GITHUB_WORKSPACE/.github/assets/specs/darkly.spec | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
@@ -36,19 +36,19 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
repository: ${{ github.repository }} | ||
sparse-checkout: .github/assets/specs/lightly.spec | ||
sparse-checkout: .github/assets/specs/darkly.spec | ||
- name: Update tag version inside spec file | ||
run: sed -i "s/.*%define release_tag.*/%define release_tag ${{ inputs.version }}/" ${{ env.SPEC_FILE }} | ||
- name: Copy opensuse specfile to rpm build location | ||
run: cp ${{ env.SPEC_FILE }} /usr/src/packages/SPECS | ||
- name: Create rpm binary file | ||
run: | | ||
cd /usr/src/packages/SPECS | ||
rpmbuild -bb lightly.spec | ||
rpmbuild -bb darkly.spec | ||
rpm_file=$(find /usr/src/packages/RPMS/x86_64 -name "*.rpm*" ! -name "*src*" ! -name "*debug*") | ||
echo "rpm_file = $rpm_file" | ||
mv $rpm_file /usr/src/packages/RPMS/x86_64/lightly-${{ inputs.version }}.openSUSE-tumbleweed.x86_64.rpm | ||
echo "RPM_ASSET= /usr/src/packages/RPMS/x86_64/lightly-${{ inputs.version }}.openSUSE-tumbleweed.x86_64.rpm" >> "$GITHUB_ENV" | ||
mv $rpm_file /usr/src/packages/RPMS/x86_64/darkly-${{ inputs.version }}.openSUSE-tumbleweed.x86_64.rpm | ||
echo "RPM_ASSET= /usr/src/packages/RPMS/x86_64/darkly-${{ inputs.version }}.openSUSE-tumbleweed.x86_64.rpm" >> "$GITHUB_ENV" | ||
- name: Release | ||
uses: softprops/[email protected] | ||
if: startsWith(github.ref, 'refs/tags/') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.