Skip to content

Commit

Permalink
Added file index to split zip
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrabski committed Aug 2, 2024
1 parent 26aaf0a commit cd55a2b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
build:
runs-on: ubuntu-latest
env:
VERSION_TAG: JPKv0_0_1
VERSION: '0.0.1'
VERSION_TAG: JPKv0_0_2
VERSION: '0.0.2'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion JpkHelper/Commads/MakeManifestCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ internal async Task Execute()
var fileName = Path.GetFileName(file);
var compressed = await Compress(file);
var result = Encrypt(aesKey, iv, compressed);
var compressedFileName = $"{fileName}.zip.aes";
var compressedFileName = $"{fileName}.zip.001.aes";
using var destination = File.Create(Path.Combine(OutputPath, compressedFileName));
destination.Write(result);
compressedAndZippedFiles.Add(new(
Expand Down Expand Up @@ -203,6 +203,7 @@ private static byte[] Encrypt(byte[] aesKey, byte[] iv, byte[] compressed)
using var aes = Aes.Create();
aes.Key = aesKey;
aes.KeySize = 256;
aes.BlockSize = 128;
aes.Mode = CipherMode.CBC;
return aes.EncryptCbc(compressed.AsSpan(), iv, PaddingMode.PKCS7);
}
Expand Down
2 changes: 1 addition & 1 deletion JpkHelper/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"itp send": {
"itp make": {
"commandName": "Project",
"commandLineArgs": "make -f \"E:\\Datecs\\itp\\program_tests\\ITP_15072024_1.xml\" -k ToConsole"
},
Expand Down

0 comments on commit cd55a2b

Please sign in to comment.