Skip to content

Commit

Permalink
use bsdtar from LibArchive_jll
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrea committed Jun 23, 2020
1 parent 6f0b7f5 commit 36cff17
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
8 changes: 5 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name = "ArcadeLearningEnvironment"
uuid = "b7f77d8d-088d-5e02-8ac0-89aab2acc977"
version = "0.2.2"
version = "0.2.3"

[deps]
ArcadeLearningEnvironment_jll = "52cbb755-00ff-5a24-b23e-8a91c598877e"
LibArchive_jll = "1e303b3e-d4db-56ce-88c4-91e52606a1a8"
MD5 = "6ac74813-4b46-53a4-afec-0b5dc9d7885c"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[compat]
julia = "1.4"
MD5 = "0.2"
ArcadeLearningEnvironment_jll = "0.6"
LibArchive_jll = "3"
MD5 = "0.2"
julia = "1.3, 1.4"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ paper to acknowledge the work that went into ALE.
## Installation

The package automatically downloads version 0.6.1 of the ArcadeLearningEnvironment
and the ROMS from www.atarimania.com.

```julia
Pkg.add("ArcadeLearningEnvironment")
Expand All @@ -47,6 +48,7 @@ Pkg.add("ArcadeLearningEnvironment")
```julia
using ArcadeLearningEnvironment

getROMList()

episodes = 50

Expand Down
7 changes: 5 additions & 2 deletions deps/build.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using MD5
using LibArchive_jll
using Pkg.Artifacts

function import_roms(dir)
Expand Down Expand Up @@ -36,8 +37,10 @@ if rom_hash == nothing || !artifact_exists(rom_hash)
download("https://raw.githubusercontent.com/mgbellemare/Arcade-Learning-Environment/v0.6.1/md5.txt", joinpath(artifact_dir, "md5.txt"))
download("http://www.atarimania.com/roms/Roms.rar", joinpath(artifact_dir, "Roms.rar"))
cd(artifact_dir)
run(`7z e $(joinpath(artifact_dir, "Roms.rar"))`)
run(`7z x $(joinpath(artifact_dir, "ROMS.zip"))`)
bsdtar() do exe
run(`$exe -xf $(joinpath(artifact_dir, "Roms.rar"))`)
run(`$exe -xf $(joinpath(artifact_dir, "ROMS.zip"))`)
end
rm(joinpath(artifact_dir, "Roms.rar"))
rm(joinpath(artifact_dir, "ROMS.zip"))
rm(joinpath(artifact_dir, "HC ROMS.zip"))
Expand Down

2 comments on commit 36cff17

@jbrea
Copy link
Collaborator Author

@jbrea jbrea commented on 36cff17 Jun 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/16783

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.3 -m "<description of version>" 36cff17c8960715562284f79b1cc1dbb24b01529
git push origin v0.2.3

Please sign in to comment.