Skip to content
a simple command-line tool to pack and unpack pak files in chrome or chromium-based browser
C Batchfile CMake Shell
Branch: develop
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore pak: add test scripts Apr 14, 2018
CMakeLists.txt
LICENSE Initial Code Apr 11, 2018
LICENSE.LGPL pak: add custom startfiles on win32 Apr 14, 2018
README.md pak: add overwrite note Aug 7, 2018
appveyor.bat pak: initial support of msvc Apr 30, 2018
appveyor.yml appveyor: skip compile-unrelated files Aug 7, 2018
commandlinetoargva.h pak: lint code May 19, 2019
main.c pak: lint code May 19, 2019
main.h pak: lint code May 19, 2019
pack.bat batch: fix typo May 1, 2018
pak_defs.h
pak_file.c all: use uint8_t instead of void Apr 19, 2018
pak_file.h headers: drop duplicate pragma Jun 16, 2018
pak_file_io.c all: use uint8_t instead of void Apr 19, 2018
pak_file_io.h headers: add docs Apr 13, 2018
pak_get_file_type.c file_type: better type detection Jun 11, 2019
pak_get_file_type.h headers: drop duplicate pragma Jun 16, 2018
pak_header.c all: use puts instead of printf for simple messages Jul 31, 2018
pak_header.h all: use uint8_t instead of void Apr 19, 2018
pak_pack.c pak: lint code May 19, 2019
pak_pack.h pak: lint code May 19, 2019
test.sh
unpack.bat batch: fix typo May 1, 2018

README.md

chrome-pak-customizer

a simple batch tool to customize pak files in chrome or chromium-based browser

Badges

Build status Download Latest Release

License

  • Windows builds are licensed LGPL 2.1+ by default, can be disabled by appending -DLGPL=OFF to cmake.
  • Non-windows builds and builds with -DLGPL=OFF are licensed MIT.

Usage (Windows Only)

  1. Download chrome-pak.7z from releases and extract it to any folder.
  2. Drag the pak file and drop it to unpack.bat.
  3. The pak file would be extracted to subfolder of the folder of the pak file, with the same name of the pak file with an _unpacked suffix.
  4. (Optional) modify extracted files.
  5. Drag pak_index.ini to pack.bat.
  6. Repacked pak file would be in the same folder of pak_index.ini with a name like pak_index_packed.pak.

There is also a GIF Guide on windows.

Usage (Command line)

pak.exe -u pak_file destination_path
Unpack chrome pak file at pak_file to destination_path.

pak.exe -p pak_index_file destination_pak_file
Pack chrome pak file using pak_index_file to destination_pak_file.
pak_index_file would be found in unpacked path.

Note: existing destination files would be overwritten

Building

Prerequires

  • gcc
  • cmake
  • ninja

Build script example

# Getting source
git clone https://github.com/myfreeer/chrome-pak-customizer --branch=develop --single-branch
cd chrome-pak-customizer

# Creating folder for build
mkdir -p build
cd build

# Running cmake
cmake -GNinja -DLGPL=OFF ..

# Building
ninja

CMake options

  • LGPL: Enable LGPL 2.1+ licensed custom startfiles on windows for smaller binary

Credits

You can’t perform that action at this time.