Skip to content

Commit

Permalink
Prepare for release 0.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fadushin committed Oct 14, 2023
1 parent 4c0d1f7 commit a21d15f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.6.2] (Unreleased)
## [0.6.2]

- Add `relx` stanzas to create a standalone release of the `packbeam` utility
- Added `relx` stanzas to create a standalone release of the `packbeam` utility
- Added install scripts to simplify installation for users

## [0.6.1]

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ in your local working directory.
You can use the `install.sh` script to install the `atomvm_packbeam` utility into a location on your local machine. You will need to specify the prefix location into which you want to install the utility, together with it's current version.

shell$ ./install.sh /usr/local 0.6.2
atomvm_packbeam version 0.6.2 installed in /usr/local.
shell$ ./install.sh /opt/atomvm_packbeam 0.6.2
atomvm_packbeam version 0.6.2 installed in /opt/atomvm_packbeam.

> Note. Some prefix locations may require `root` permissions to write files to.
Set your `PATH` environment variable to include the `bin` directory of the installation prefix (if not already set), and you should then be able to run the `packbeam` command included therein.

For example:

shell$ export PATH=/usr/local/bin:$PATH
shell$ export PATH=/opt/atomvm_packbeam/bin:$PATH
shell$ packbeam help
Syntax:
packbeam <sub-command> <options> <args>
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ echo_run mkdir -p "${dest_dir}"
echo_run tar -C "${dest_dir}" -x -f "${tmp_dir}/atomvm_packbeam-${version}.tar"

echo_run mkdir -p "${prefix}/bin"
echo_run cp "${root_dir}/release/packbeam.in" "${prefix}/bin/packbeam"
echo_run sed "s|PACKBEAM_INSTALL_LOCATION|${dest_dir}|g" "${root_dir}/release/packbeam.in" > "${prefix}/bin/packbeam"
echo_run chmod 755 "${prefix}/bin/packbeam"

echo_run rm -rf "${tmp_dir}"
Expand Down
4 changes: 1 addition & 3 deletions release/packbeam.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@
# SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
#

readonly root_dir="$(cd $(dirname $0)/.. && pwd)"

exec ${root_dir}/atomvm_packbeam/bin/packbeam "$@"
exec PACKBEAM_INSTALL_LOCATION/bin/packbeam "$@"

0 comments on commit a21d15f

Please sign in to comment.