Skip to content

Commit

Permalink
picture-readme-update
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiserDMC committed May 14, 2024
1 parent 2cb7221 commit 1c7a380
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
39 changes: 36 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,38 @@ If an archive with the same name already exists in the folder, it will be overwr
All you need to do is run the ".bat" file and once asked paste the path of the project in the command pannel.
You should give the main path that you wish to archive, for example:

![path example](https://cdn.discordapp.com/attachments/659853809165533186/1082233713724760154/image.png)
![path example](~/img/copy-path.png)

Once you have done that paste it in the cmd window, like this:

![paste example](https://cdn.discordapp.com/attachments/659853809165533186/1082234104197693500/image.png)
![paste example](~/img/paste-path.png)

Press `Enter` and wait for the script to execute! Once its done you can close the cmd window.

### Available Settings
### Linux Support
All you need to do is run the ".sh" file and once asked paste the path of the project in the terminal.
You can run the file by typing the following command inside of the terminal:
```bash
./ZipForJudge.sh
```
(OBS! You have to be in the root directory of the script file.)

You should give the main path that you wish to archive, for example:

![path example](~/img/copy-path.png)

Once you have done that paste it in the terminal window, like this:

![paste example](~/img/paste-path.png)

Press `Enter` and wait for the script to execute! Once its done you can close the terminal window.

In case you lack permissions to execute the script, you need to run:
```bash
chmod +x ZipForJudge.sh
```

### Available Settings (Windows)
- If you wish to change the archive path from `Project Directory` to your `Desktop`, you can comment out line 20 and uncomment line 23, just like this:
```bat
REM Set Destination Path to Source Directory
Expand All @@ -38,6 +61,16 @@ REM Create zip Archive at Specified Path (7-Zip)
### OBS!
Make sure you have installed `7-Zip` in the default directory, otherwise you need to change the first string argument of the command as well, the string should point to the `7-Zip` installation path!

### Available Settings (Linux)
- If you wish to change the archive path from `Project Directory` to your `Desktop`, you can comment out line 26 and uncomment line 29, just like this:
```bash
# Set Destination Path to Source Directory
# destpath="$sourcedir"

# Set Destination Path to Desktop
destpath="$HOME/Desktop"
```

### Credits
Credit to Mokgul for this script idea!
[![GitHub](https://img.shields.io/badge/-mokgul-000000?style=flat-square&logo=Github&logoColor=white)](https://github.com/mokgul)
3 changes: 3 additions & 0 deletions ZipForJudge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ archivename="${foldername%.*}"
# Set Destination Path to Source Directory
destpath="$sourcedir"

# Set Destination Path to Desktop
# destpath="$HOME/Desktop"

# Create a Temporary Directory for Exclusion file
tempdir=$(mktemp -d)

Expand Down
Binary file added img/copy-path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/paste-path.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c7a380

Please sign in to comment.