Skip to content

Commit

Permalink
0.1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
cqb13 committed Jul 30, 2024
1 parent 7f2edae commit 0cc3b34
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,28 +69,28 @@ jobs:
run: |
choco install zip
cd target/${{ matrix.target }}/release
zip ti-tools-0.1.7-${{ matrix.target }}.zip ti-tools.exe
zip ti-tools-0.1.8-${{ matrix.target }}.zip ti-tools.exe
cd ../../..
- name: Create tar.gz file on macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
chmod +x target/${{ matrix.target }}/release/ti-tools
tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.7-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools
tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.8-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools
chmod +x target/${{ matrix.target2 }}/release/ti-tools
tar -zcf target/${{ matrix.target2 }}/release/ti-tools-0.1.7-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release ti-tools
tar -zcf target/${{ matrix.target2 }}/release/ti-tools-0.1.8-${{ matrix.target2 }}.tar.gz -C target/${{ matrix.target2 }}/release ti-tools
- name: Create tar.gz file on Linux
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
chmod +x target/${{ matrix.target }}/release/ti-tools
tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.7-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools
tar -zcf target/${{ matrix.target }}/release/ti-tools-0.1.8-${{ matrix.target }}.tar.gz -C target/${{ matrix.target }}/release ti-tools
- name: Upload release and assets to GitHub
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: "release-0.1.7-${{ github.run_number }}"
release_name: ti-tools 0.1.7
tag: "release-0.1.8-${{ github.run_number }}"
release_name: ti-tools 0.1.8
file_glob: true
file: target/*/release/ti-tools-0.1.7-*.{zip,tar.gz}
file: target/*/release/ti-tools-0.1.8-*.{zip,tar.gz}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ti-tools"
version = "0.1.7"
version = "0.1.8"
edition = "2021"
authors = ["cqb13 <cqb13.dev@gmail.com>"]
license = "MIT"
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases
-d --display-mode <DISPLAY_MODE> The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible
-c --content Display the content of the input file
-p --preview Display the decoded output
-m --mass Changes input required from file to directory for mass file decoding
encode - Converts txt to 8xp
input <INPUT> (required) The input path to an txt file
-o --output <OUTPUT> The output path to an 8xp/82p/83p file
-e --encode-mode <ENCODE_MODE> The mode used to parse tokens [min, max, smart] | Default: smart
-c --content Display the content of the input file
-p --preview Display the decoded output
-m --mass Changes input required from file to directory for mass file encoding
rename - Renames the program name in a 8xp/82p/83p file
input <INPUT> (required) The input path to an 8xp/82p/83p file
Expand Down Expand Up @@ -107,12 +109,20 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases
ti-tools decode ./src/tests/programs/TOCCATA.8xp -p -c -o ./TOCCATA.txt
```

```sh
ti-tools decode ./src/tests/programs -o ./programs --mass
```

### Encode

```sh
ti-tools encode ./TOCCATA.txt -p -c -o ./TOCCATA.8xp
```

```sh
ti-tools encode ./src/tests/programs -o ./programs --mass
```

## Contributing

Contributions are welcome! Feel free to fork this repository and submit pull requests.
Expand Down
10 changes: 10 additions & 0 deletions wiki/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases
-d --display-mode <DISPLAY_MODE> The characters to translate the tokens to [pretty, accessible, ti] | Default: accessible
-c --content Display the content of the input file
-p --preview Display the decoded output
-m --mass Changes input required from file to directory for mass file decoding
encode - Converts txt to 8xp
input <INPUT> (required) The input path to an txt file
-o --output <OUTPUT> The output path to an 8xp/82p/83p file
-e --encode-mode <ENCODE_MODE> The mode used to parse tokens [min, max, smart] | Default: smart
-c --content Display the content of the input file
-p --preview Display the decoded output
-m --mass Changes input required from file to directory for mass file encoding
rename - Renames the program name in a 8xp/82p/83p file
input <INPUT> (required) The input path to an 8xp/82p/83p file
Expand Down Expand Up @@ -105,12 +107,20 @@ Pre-built binaries are available for Windows, macOS, and Linux on the [releases
ti-tools decode ./src/tests/programs/TOCCATA.8xp -p -c -o ./TOCCATA.txt
```

```sh
ti-tools decode ./src/tests/programs -o ./programs --mass
```

### Encode

```sh
ti-tools encode ./TOCCATA.txt -p -c -o ./TOCCATA.8xp
```

```sh
ti-tools encode ./src/tests/programs -o ./programs --mass
```

## Troubleshooting

### Mismatch between decoded and encoded programs
Expand Down

0 comments on commit 0cc3b34

Please sign in to comment.