diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 146ad85..da9fec4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,48 +1,21 @@ default: - image: registry.gitlab.com/mmk2410/intellij-idea-pkg-image:oracular + image: ubuntu:lunar variables: PACKAGE: "intellij-idea-ultimate" TZ: UTC + DEBIAN_FRONTEND: noninteractive NAME: "Marcel Kapfer" EMAIL: "opensource@mmk2410.org" stages: - - autoupdate - build - deploy -update-job: - stage: autoupdate - script: - ## - ## Configure SSH key - ## - - eval $(ssh-agent -s) - - chmod 400 "$SSH_PRIVATE_KEY" - - ssh-add "$SSH_PRIVATE_KEY" - - mkdir ~/.ssh - - chmod 700 ~/.ssh - - cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts - - chmod 644 ~/.ssh/known_hosts - - ## - ## Configure Git setup - ## - - git config user.name "$NAME" - - git config user.email "$EMAIL" - - git remote set-url origin "$GIT_URL" - - ## - ## Run autoupdate script which handles everything else. - ## - - ./autoupdate.sh - rules: - - if: $CI_PIPELINE_SOURCE == "schedule" - build-job: stage: build script: + - apt update && apt install -y git devscripts debhelper - export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2) - cd "$PACKAGE"_"$VERSION" || exit - debuild -us -uc @@ -55,9 +28,10 @@ build-job: - if: $CI_COMMIT_TAG deploy-job: - image: registry.gitlab.com/mmk2410/intellij-idea-pkg-image:$UBUNTU_VERSION + image: ubuntu:$UBUNTU_VERSION stage: deploy script: + - apt update && apt install -y git devscripts debhelper gnupg - export VERSION=$(git describe --abbrev=0 --tags | cut -d'v' -f2) - echo "$GPG_PRIVATE_KEY" | tr -d '\r' | gpg --import - - echo "$GPG_PUBLIC_KEY" | tr -d '\r' | gpg --import - @@ -70,4 +44,4 @@ deploy-job: - if: $CI_COMMIT_TAG parallel: matrix: - - UBUNTU_VERSION: [trusty, xenial, bionic, focal, jammy, noble, oracular] + - UBUNTU_VERSION: [trusty, xenial, bionic, focal, kinetic, jammy, lunar] diff --git a/autoupdate.sh b/autoupdate.sh deleted file mode 100755 index 1386bb7..0000000 --- a/autoupdate.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -dir="$(find . -maxdepth 1 -type d -name "intellij-idea-*")" -pushd "$dir" || exit 1 - -set +e -check="$(uscan --dehs --no-download)" -set -e - -status="$(echo "$check" | xmllint --xpath 'string(/dehs/status)' -)" - -if [[ "$status" != "newer package available" ]]; then - echo "No newer package available." - exit -fi - -new_version="$(echo "$check" | xmllint --xpath 'string(/dehs/upstream-version)' -)" - -popd - -./update-new-version.sh "$new_version" - -git add -A -git commit -m "Upstream version $new_version" - -git switch main -git merge --ff-only version-"$new_version" -git push origin main - -git tag -a v"$new_version" -m "Upstream version $new_version" -git push --tags origin main diff --git a/intellij-idea-ultimate_2023.1.3-1_all.deb b/intellij-idea-ultimate_2023.1.3-1_all.deb new file mode 100644 index 0000000..fb3335d Binary files /dev/null and b/intellij-idea-ultimate_2023.1.3-1_all.deb differ diff --git a/intellij-idea-ultimate_2023.1.3.orig.tar.gz b/intellij-idea-ultimate_2023.1.3.orig.tar.gz new file mode 100644 index 0000000..6c22ff6 Binary files /dev/null and b/intellij-idea-ultimate_2023.1.3.orig.tar.gz differ diff --git a/intellij-idea-ultimate_2025.1/debian/changelog b/intellij-idea-ultimate_2023.1.3/debian/changelog similarity index 66% rename from intellij-idea-ultimate_2025.1/debian/changelog rename to intellij-idea-ultimate_2023.1.3/debian/changelog index 9612cc2..177b027 100644 --- a/intellij-idea-ultimate_2025.1/debian/changelog +++ b/intellij-idea-ultimate_2023.1.3/debian/changelog @@ -1,231 +1,3 @@ -intellij-idea-ultimate (2025.1-1) oracular; urgency=medium - - * Upstream version 2025.1 - - -- Marcel Kapfer Wed, 16 Apr 2025 13:02:19 +0000 - -intellij-idea-ultimate (2024.3.5-1) oracular; urgency=medium - - * Upstream version 2024.3.5 - - -- Marcel Kapfer Tue, 18 Mar 2025 14:02:10 +0000 - -intellij-idea-ultimate (2024.3.4.1-1) oracular; urgency=medium - - * Upstream version 2024.3.4.1 - - -- Marcel Kapfer Thu, 06 Mar 2025 14:02:13 +0000 - -intellij-idea-ultimate (2024.3.4-1) oracular; urgency=medium - - * Upstream version 2024.3.4 - - -- Marcel Kapfer Fri, 28 Feb 2025 14:02:31 +0000 - -intellij-idea-ultimate (2024.3.3-1) oracular; urgency=medium - - * Upstream version 2024.3.3 - - -- Marcel Kapfer Thu, 13 Feb 2025 14:02:11 +0000 - -intellij-idea-ultimate (2024.3.2.2-1) oracular; urgency=medium - - * Upstream version 2024.3.2.2 - - -- Marcel Kapfer Thu, 30 Jan 2025 14:02:14 +0000 - -intellij-idea-ultimate (2024.3.2.1-1) oracular; urgency=medium - - * Upstream version 2024.3.2.1 - - -- Marcel Kapfer Fri, 24 Jan 2025 14:02:14 +0000 - -intellij-idea-ultimate (2024.3.2-1) oracular; urgency=medium - - * Upstream version 2024.3.2 - - -- Marcel Kapfer Fri, 17 Jan 2025 14:02:15 +0000 - -intellij-idea-ultimate (2024.3.1.1-1) oracular; urgency=medium - - * Upstream version 2024.3.1.1 - - -- Marcel Kapfer Thu, 19 Dec 2024 14:02:01 +0000 - -intellij-idea-ultimate (2024.3.1-1) oracular; urgency=medium - - * Upstream version 2024.3.1 - - -- Marcel Kapfer Mon, 09 Dec 2024 14:02:30 +0000 - -intellij-idea-ultimate (2024.3-1) noble; urgency=medium - - * Upstream version 2024.3 - - -- Marcel Kapfer Wed, 13 Nov 2024 14:02:09 +0000 - -intellij-idea-ultimate (2024.2.4-1) noble; urgency=medium - - * Upstream version 2024.2.4 - - -- Marcel Kapfer Thu, 24 Oct 2024 13:01:54 +0000 - -intellij-idea-ultimate (2024.2.3-1) noble; urgency=medium - - * Upstream version 2024.2.3 - - -- Marcel Kapfer Thu, 26 Sep 2024 13:02:05 +0000 - -intellij-idea-ultimate (2024.2.2-1) noble; urgency=medium - - * Upstream version 2024.2.2 - - -- Marcel Kapfer Thu, 19 Sep 2024 13:02:08 +0000 - -intellij-idea-ultimate (2024.2.1-1) noble; urgency=medium - - * Upstream version 2024.2.1 - - -- Marcel Kapfer Fri, 30 Aug 2024 13:02:07 +0000 - -intellij-idea-ultimate (2024.2.0.2-1) noble; urgency=medium - - * Upstream version 2024.2.0.2 - - -- Marcel Kapfer Wed, 21 Aug 2024 13:02:12 +0000 - -intellij-idea-ultimate (2024.2.0.1-1) noble; urgency=medium - - * Upstream version 2024.2.0.1 - - -- Marcel Kapfer Wed, 14 Aug 2024 13:02:11 +0000 - -intellij-idea-ultimate (2024.2-1) noble; urgency=medium - - * Upstream version 2024.2 - - -- Marcel Kapfer Wed, 07 Aug 2024 13:02:16 +0000 - -intellij-idea-ultimate (2024.1.5-1) noble; urgency=medium - - * Upstream version 2024.1.5 - - -- Marcel Kapfer Tue, 06 Aug 2024 13:02:39 +0000 - -intellij-idea-ultimate (2024.1.4-1) noble; urgency=medium - - * Upstream version 2024.1.4 - - -- Marcel Kapfer Fri, 21 Jun 2024 13:02:07 +0000 - -intellij-idea-ultimate (2024.1.3-1) noble; urgency=medium - - * Upstream version 2024.1.3 - - -- Marcel Kapfer Tue, 11 Jun 2024 13:02:22 +0000 - -intellij-idea-ultimate (2024.1.2-1) lunar; urgency=medium - - * Upstream version 2024.1.2 - - -- Marcel Kapfer Thu, 23 May 2024 13:02:28 +0000 - -intellij-idea-ultimate (2024.1.1-1) lunar; urgency=medium - - * Upstream version 2024.1.1 - - -- Marcel Kapfer Tue, 30 Apr 2024 13:02:14 +0000 - -intellij-idea-ultimate (2024.1-1) lunar; urgency=medium - - * Upstream version 2024.1 - - -- Marcel Kapfer Thu, 04 Apr 2024 13:02:11 +0000 - -intellij-idea-ultimate (2023.3.6-1) lunar; urgency=medium - - * Upstream version 2023.3.6 - - -- Marcel Kapfer Fri, 22 Mar 2024 14:02:37 +0000 - -intellij-idea-ultimate (2023.3.5-1) lunar; urgency=medium - - * Upstream version 2023.3.5 - - -- Marcel Kapfer Wed, 13 Mar 2024 14:02:15 +0000 - -intellij-idea-ultimate (2023.3.4-1) lunar; urgency=medium - - * Upstream version 2023.3.4 - - -- Marcel Kapfer Wed, 14 Feb 2024 14:02:19 +0000 - -intellij-idea-ultimate (2023.3.3-1) lunar; urgency=medium - - * Upstream version 2023.3.3 - - -- Marcel Kapfer Fri, 26 Jan 2024 14:02:30 +0000 - -intellij-idea-ultimate (2023.3.2-1) lunar; urgency=medium - - * Upstream version 2023.3.2 - - -- Marcel Kapfer Thu, 21 Dec 2023 14:02:11 +0000 - -intellij-idea-ultimate (2023.3.1-1) lunar; urgency=medium - - * Upstream version 2023.3.1 - - -- Marcel Kapfer Wed, 13 Dec 2023 14:04:37 +0000 - -intellij-idea-ultimate (2023.3-1) lunar; urgency=medium - - * Upstream version 2023.3 - - -- Marcel Kapfer Thu, 07 Dec 2023 14:02:23 +0000 - -intellij-idea-ultimate (2023.2.5-1) lunar; urgency=medium - - * Upstream version 2023.2.5 - - -- Marcel Kapfer Fri, 10 Nov 2023 14:01:05 +0000 - -intellij-idea-ultimate (2023.2.4-1) lunar; urgency=medium - - * Upstream version 2023.2.4 - - -- Marcel Kapfer Wed, 25 Oct 2023 13:01:11 +0000 - -intellij-idea-ultimate (2023.2.3-1) lunar; urgency=medium - - * Upstream version 2023.2.3 - - -- Marcel Kapfer Thu, 12 Oct 2023 13:01:23 +0000 - -intellij-idea-ultimate (2023.2.2-1) lunar; urgency=medium - - * Upstream version 2023.2.2 - - -- Marcel Kapfer Thu, 14 Sep 2023 13:01:11 +0000 - -intellij-idea-ultimate (2023.2.1-1) lunar; urgency=medium - - * Upstream version 2023.2.1 - - -- Marcel Kapfer Thu, 24 Aug 2023 13:01:11 +0000 - -intellij-idea-ultimate (2023.2-1) lunar; urgency=medium - - * Upstream version 2023.2 - - -- Marcel Kapfer Wed, 26 Jul 2023 18:07:24 +0000 - -intellij-idea-ultimate (2023.1.4-1) lunar; urgency=medium - - * Upstream version 2023.1.4 - - -- autoupdate Thu, 20 Jul 2023 15:58:59 +0000 - intellij-idea-ultimate (2023.1.3-1) lunar; urgency=medium * Upstream version 2023.1.3 diff --git a/intellij-idea-ultimate_2025.1/debian/compat b/intellij-idea-ultimate_2023.1.3/debian/compat similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/compat rename to intellij-idea-ultimate_2023.1.3/debian/compat diff --git a/intellij-idea-ultimate_2025.1/debian/control b/intellij-idea-ultimate_2023.1.3/debian/control similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/control rename to intellij-idea-ultimate_2023.1.3/debian/control diff --git a/intellij-idea-ultimate_2025.1/debian/copyright b/intellij-idea-ultimate_2023.1.3/debian/copyright similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/copyright rename to intellij-idea-ultimate_2023.1.3/debian/copyright diff --git a/intellij-idea-ultimate_2025.1/debian/debhelper-build-stamp b/intellij-idea-ultimate_2023.1.3/debian/debhelper-build-stamp similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/debhelper-build-stamp rename to intellij-idea-ultimate_2023.1.3/debian/debhelper-build-stamp diff --git a/intellij-idea-ultimate_2025.1/debian/install b/intellij-idea-ultimate_2023.1.3/debian/install similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/install rename to intellij-idea-ultimate_2023.1.3/debian/install diff --git a/intellij-idea-ultimate_2025.1/debian/postinst b/intellij-idea-ultimate_2023.1.3/debian/postinst similarity index 83% rename from intellij-idea-ultimate_2025.1/debian/postinst rename to intellij-idea-ultimate_2023.1.3/debian/postinst index d186da3..0513252 100644 --- a/intellij-idea-ultimate_2025.1/debian/postinst +++ b/intellij-idea-ultimate_2023.1.3/debian/postinst @@ -5,13 +5,13 @@ set -e cd /opt/ ## Extract the package -tar xf /opt/ideaIU-2025.1.tar.gz +tar xf /opt/ideaIU-2023.1.3.tar.gz ## Rename the directory mv /opt/idea-IU-* /opt/intellij-idea-ultimate ## Remove the tar.gz package -rm /opt/ideaIU-2025.1.tar.gz +rm /opt/ideaIU-2023.1.3.tar.gz ## Install the .desktop file, if necessary if [ -x "/usr/bin/desktop-file-install" ]; then diff --git a/intellij-idea-ultimate_2025.1/debian/postrm b/intellij-idea-ultimate_2023.1.3/debian/postrm similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/postrm rename to intellij-idea-ultimate_2023.1.3/debian/postrm diff --git a/intellij-idea-ultimate_2025.1/debian/preinst b/intellij-idea-ultimate_2023.1.3/debian/preinst similarity index 60% rename from intellij-idea-ultimate_2025.1/debian/preinst rename to intellij-idea-ultimate_2023.1.3/debian/preinst index 8ccead1..d25f938 100644 --- a/intellij-idea-ultimate_2025.1/debian/preinst +++ b/intellij-idea-ultimate_2023.1.3/debian/preinst @@ -5,6 +5,6 @@ set -e cd /opt/ ## Download IntelliJ IDEA Community from the jetbrain servers -wget -c https://download-cf.jetbrains.com/idea/ideaIU-2025.1.tar.gz +wget -c https://download-cf.jetbrains.com/idea/ideaIU-2023.1.3.tar.gz ##DEBHELPER## diff --git a/intellij-idea-ultimate_2025.1/debian/rules b/intellij-idea-ultimate_2023.1.3/debian/rules similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/rules rename to intellij-idea-ultimate_2023.1.3/debian/rules diff --git a/intellij-idea-ultimate_2025.1/debian/source/format b/intellij-idea-ultimate_2023.1.3/debian/source/format similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/source/format rename to intellij-idea-ultimate_2023.1.3/debian/source/format diff --git a/intellij-idea-ultimate_2025.1/debian/source/include-binaries b/intellij-idea-ultimate_2023.1.3/debian/source/include-binaries similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/source/include-binaries rename to intellij-idea-ultimate_2023.1.3/debian/source/include-binaries diff --git a/intellij-idea-ultimate_2025.1/debian/watch b/intellij-idea-ultimate_2023.1.3/debian/watch similarity index 100% rename from intellij-idea-ultimate_2025.1/debian/watch rename to intellij-idea-ultimate_2023.1.3/debian/watch diff --git a/intellij-idea-ultimate_2025.1/intellij-idea-ue.png b/intellij-idea-ultimate_2023.1.3/intellij-idea-ue.png similarity index 100% rename from intellij-idea-ultimate_2025.1/intellij-idea-ue.png rename to intellij-idea-ultimate_2023.1.3/intellij-idea-ue.png diff --git a/intellij-idea-ultimate_2023.1.3/intellij-idea-ultimate b/intellij-idea-ultimate_2023.1.3/intellij-idea-ultimate new file mode 100755 index 0000000..373706a --- /dev/null +++ b/intellij-idea-ultimate_2023.1.3/intellij-idea-ultimate @@ -0,0 +1,3 @@ +#!/bin/sh +export IDEA_JDK=$JAVA_HOME +exec /opt/intellij-idea-ultimate/bin/idea.sh "$@" diff --git a/intellij-idea-ultimate_2025.1/intellij-idea-ultimate.desktop b/intellij-idea-ultimate_2023.1.3/intellij-idea-ultimate.desktop similarity index 100% rename from intellij-idea-ultimate_2025.1/intellij-idea-ultimate.desktop rename to intellij-idea-ultimate_2023.1.3/intellij-idea-ultimate.desktop diff --git a/intellij-idea-ultimate_2025.1-1_all.deb b/intellij-idea-ultimate_2025.1-1_all.deb deleted file mode 100644 index 879d040..0000000 Binary files a/intellij-idea-ultimate_2025.1-1_all.deb and /dev/null differ diff --git a/intellij-idea-ultimate_2025.1.orig.tar.gz b/intellij-idea-ultimate_2025.1.orig.tar.gz deleted file mode 100644 index 5574902..0000000 Binary files a/intellij-idea-ultimate_2025.1.orig.tar.gz and /dev/null differ diff --git a/intellij-idea-ultimate_2025.1/intellij-idea-ultimate b/intellij-idea-ultimate_2025.1/intellij-idea-ultimate deleted file mode 100755 index 8cc79e3..0000000 --- a/intellij-idea-ultimate_2025.1/intellij-idea-ultimate +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -export IDEA_JDK=$JAVA_HOME -exec /opt/intellij-idea-ultimate/bin/idea "$@" diff --git a/update-new-version.sh b/update-new-version.sh index 63590d3..e4db97b 100755 --- a/update-new-version.sh +++ b/update-new-version.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/bin/bash # # This script intends to decrease the effort of updating the package. @@ -12,12 +12,11 @@ if [[ $? != 0 ]]; then fi PACKAGE="intellij-idea-ultimate" -DISTRIBUTION="oracular" +DISTRIBUTION="lunar" last_tag=$(git describe --abbrev=0 --tags) old="${last_tag#?}" new="$1" - name="$(git config --get user.name)" email="$(git config --get user.email)"