mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
Merge pull request #1385 from maticnetwork/djpolygon/packaging_cleanup
Removing control files and updating the updateVersion.sh
This commit is contained in:
commit
a1d36c2a74
8 changed files with 18 additions and 93 deletions
19
.github/workflows/amoy_deb_profiles.yml
vendored
19
.github/workflows/amoy_deb_profiles.yml
vendored
|
|
@ -194,7 +194,6 @@ jobs:
|
|||
ARCH: all
|
||||
NODE: sentry
|
||||
NETWORK: amoy
|
||||
|
||||
- name: Running package build for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-pbss-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -233,6 +232,12 @@ jobs:
|
|||
ARCH: all
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying systemd file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/lib/systemd/system/
|
||||
env:
|
||||
ARCH: all
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -271,6 +276,12 @@ jobs:
|
|||
ARCH: all
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Copying systemd file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor-pbss-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/lib/systemd/system/
|
||||
env:
|
||||
ARCH: all
|
||||
NODE: validator
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-pbss-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
@ -315,6 +326,12 @@ jobs:
|
|||
ARCH: all
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Copying systemd file for ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }}
|
||||
run: cp -rp packaging/templates/systemd/bor.service packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}/lib/systemd/system/
|
||||
env:
|
||||
ARCH: all
|
||||
NODE: archive
|
||||
NETWORK: amoy
|
||||
- name: Building bor ${{ env.NODE }} on ${{ env.NETWORK }} on ${{ env.ARCH }} profile
|
||||
run: dpkg-deb --build --root-owner-group packaging/deb/bor-${{ env.NETWORK }}-${{ env.NODE }}-config_${{ env.GIT_TAG }}-${{ env.ARCH }}
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
Source: bor
|
||||
Version: 1.5.2
|
||||
Section: develop
|
||||
Priority: standard
|
||||
Maintainer: Polygon <release-team@polygon.technology>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Package: bor
|
||||
Rules-Requires-Root: yes
|
||||
Architecture: amd64
|
||||
Multi-Arch: foreign
|
||||
Depends:
|
||||
Description: This is the bor package from Polygon Technology.
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
Source: bor
|
||||
Version: 1.5.2
|
||||
Section: develop
|
||||
Priority: standard
|
||||
Maintainer: Polygon <release-team@polygon.technology>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Rules-Requires-Root: yes
|
||||
Package: bor
|
||||
Architecture: arm64
|
||||
Multi-Arch: foreign
|
||||
Depends:
|
||||
Description: This is the bor package from Polygon Technology.
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
Source: bor-profile
|
||||
Version: 1.5.2
|
||||
Section: develop
|
||||
Priority: standard
|
||||
Maintainer: Polygon <release-team@polygon.technology>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Rules-Requires-Root: yes
|
||||
Package: bor-profile
|
||||
Architecture: amd64
|
||||
Multi-Arch: foreign
|
||||
Depends:
|
||||
Description: This is the bor package from Polygon Technology.
|
||||
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
Source: bor-profile
|
||||
Version: 1.5.2
|
||||
Section: develop
|
||||
Priority: standard
|
||||
Maintainer: Polygon <release-team@polygon.technology>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Rules-Requires-Root: yes
|
||||
Package: bor-profile
|
||||
Architecture: arm64
|
||||
Multi-Arch: foreign
|
||||
Depends:
|
||||
Description: This is the bor package from Polygon Technology.
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
Source: bor-profile
|
||||
Version: 1.5.2
|
||||
Section: develop
|
||||
Priority: standard
|
||||
Maintainer: Polygon <release-team@polygon.technology>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Package: bor-profile
|
||||
Rules-Requires-Root: yes
|
||||
Architecture: amd64
|
||||
Multi-Arch: foreign
|
||||
Depends:
|
||||
Description: This is the bor package from Polygon Technology.
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
Source: bor-profile
|
||||
Version: 1.5.2
|
||||
Section: develop
|
||||
Priority: standard
|
||||
Maintainer: Polygon <release-team@polygon.technology>
|
||||
Build-Depends: debhelper-compat (= 13)
|
||||
Rules-Requires-Root: yes
|
||||
Package: bor-profile
|
||||
Architecture: arm64
|
||||
Multi-Arch: foreign
|
||||
Depends:
|
||||
Description: This is the bor package from Polygon Technology.
|
||||
|
||||
|
|
@ -51,22 +51,6 @@ fi
|
|||
echo ""
|
||||
echo "New version is: $version"
|
||||
|
||||
# update version in all the 6 templates
|
||||
replace="Version: "$version
|
||||
fileArray=(
|
||||
"${DIR}/../packaging/templates/package_scripts/control"
|
||||
"${DIR}/../packaging/templates/package_scripts/control.arm64"
|
||||
"${DIR}/../packaging/templates/package_scripts/control.profile.amd64"
|
||||
"${DIR}/../packaging/templates/package_scripts/control.profile.arm64"
|
||||
"${DIR}/../packaging/templates/package_scripts/control.validator"
|
||||
"${DIR}/../packaging/templates/package_scripts/control.validator.arm64"
|
||||
)
|
||||
for file in ${fileArray[@]}; do
|
||||
# get the line starting with `Version` in the control file and store it in the $temp variable
|
||||
temp=$(grep "^Version.*" $file)
|
||||
sed -i '' "s%$temp%$replace%" $file
|
||||
done
|
||||
|
||||
# update version in ../params/version.go
|
||||
versionFile="${DIR}/../params/version.go"
|
||||
sed -i '' "s% = .*// Major% = $VersionMajor // Major%g" $versionFile
|
||||
|
|
|
|||
Loading…
Reference in a new issue