easier dependencies instruction and installation

This commit is contained in:
shijimasoft 2022-08-02 19:35:17 +02:00
parent fc8223371e
commit 575dc6526a
3 changed files with 21 additions and 12 deletions

View File

@ -3,8 +3,9 @@
*Decrypt CIA roms in UNIX environments* 🪐
#### Requirements
* Python 2.7
* [PyCrypto](https://pypi.org/project/pycrypto/)
* [Python 2.7](https://www.python.org/download/releases/2.7/)
* [PyCrypto](https://pypi.org/project/pycrypto/)
* `pip install pycrypto` or `easy_install pycrypto`
```
cia-unix/
@ -14,23 +15,25 @@ cia-unix/
├─ makerom
└─ Encrypted Game.cia
```
**ctrtool** and **makerom** can be downloaded with `dltools.sh`
**ctrtool**, **makerom** and **decrypt.py** can be downloaded with `dltools.sh`
## 📋 Roadmap
- [x] Decrypt .cia
- [x] Games
- [x] Patch and DLCs
- [x] Decrypt .3ds
- [ ] Rust 'decrypt.py' rewrite
- [ ] Rust/C++ 'decrypt.py' rewrite
## ⚡️ Build from source
Youll need the [Crystal compiler](https://crystal-lang.org/install/)
`crystal build cia-unix.cr --release`
```
crystal build cia-unix.cr --release --no-debug
```
Dependencies can be compiled with [makerom](https://github.com/3DSGuy/Project_CTR/tree/master/makerom) and [ctrtool](https://github.com/3DSGuy/Project_CTR/tree/master/ctrtool) make files
## Contributors
ctrtool and makerom are from [*3DSGuy* repository](https://github.com/3DSGuy/Project_CTR)
ctrtool and makerom are from [3DSGuy repository](https://github.com/3DSGuy/Project_CTR)
*[AdawareDeveloper](https://github.com/AdawareDeveloper)* contributed translating the [windows-only version](https://github.com/matiffeder/3DS-stuff/blob/master/Batch%20CIA%203DS%20Decryptor.bat)
*Adaware* contributed translating the [windows-only version](https://github.com/matiffeder/3DS-stuff/blob/master/Batch%20CIA%203DS%20Decryptor.bat)

View File

@ -27,11 +27,10 @@ tools.each do |tool|
if !File.exists? %x[which #{tool}].chomp
case tool
when "python2.7"
abort "#{"Python 2.7".colorize.mode :bold} not found. Install it before continue"
print "#{"Python 2.7".colorize.mode :bold} not found. Install it before continue"
abort "https://www.python.org/download/releases/2.7/"
when "decrypt.py"
if !File.exists? tool
abort "#{tool.colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}"
end
abort "#{tool.colorize.mode :bold} not found. Make sure it's located in the #{"same directory".colorize.mode :underline}" if !File.exists? tool
else
print "Some #{"tools".colorize.mode :bold} are missing, do you want to download them? (y/n): "
if ["y", "Y"].includes? gets.to_s

View File

@ -29,8 +29,15 @@ elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
mv makerom-v0.18.3-ubuntu_x86_64/makerom "$SCRIPT_DIR/makerom"
fi
if [[ ! -f "decrypt.py" ]]; then
echo " * Downloading ${BOLD}decrypt.py${NORMAL}"
wget https://raw.githubusercontent.com/shijimasoft/cia-unix/main/decrypt.py -q
fi
echo " * Cleaning up"
rm -rf ctrtool-v1.1.0-*
rm -rf makerom-v0.18.3-*
chmod +x ctrtool makerom
chmod +x ctrtool makerom
echo