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 9ef1521
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 42 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
15 changes: 2 additions & 13 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,18 +83,7 @@ readonly tmp_dir="$(mktemp -d /tmp/atomvm_packbeam.XXXXXX)"
echo_run cp "${src_tar}" "${tmp_dir}/."
echo_run gunzip "${tmp_dir}/atomvm_packbeam-${version}.tar.gz"

readonly dest_dir="${prefix}/atomvm_packbeam"
if [ -e "${dest_dir}" ]; then
echo "ERROR! It looks like ${dest_dir} already exists!"
exit 1
fi

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 chmod 755 "${prefix}/bin/packbeam"
echo_run tar -C "${prefix}" -x -f "${tmp_dir}/atomvm_packbeam-${version}.tar"

echo_run rm -rf "${tmp_dir}"
echo "atomvm_packbeam version ${version} installed in ${dest_dir}."
echo "atomvm_packbeam version ${version} installed in ${prefix}."
24 changes: 0 additions & 24 deletions release/packbeam.in

This file was deleted.

0 comments on commit 9ef1521

Please sign in to comment.