Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing control files and updating the updateVersion.sh #1385

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/amoy_deb_profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 0 additions & 12 deletions packaging/templates/package_scripts/control

This file was deleted.

13 changes: 0 additions & 13 deletions packaging/templates/package_scripts/control.arm64

This file was deleted.

14 changes: 0 additions & 14 deletions packaging/templates/package_scripts/control.profile.amd64

This file was deleted.

12 changes: 0 additions & 12 deletions packaging/templates/package_scripts/control.profile.arm64

This file was deleted.

12 changes: 0 additions & 12 deletions packaging/templates/package_scripts/control.validator

This file was deleted.

13 changes: 0 additions & 13 deletions packaging/templates/package_scripts/control.validator.arm64

This file was deleted.

16 changes: 0 additions & 16 deletions scripts/updateVersion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading