Repository navigation
feat(archive): add comprehensive ZIP and RAR creation and extraction with password and split volumes - #8
Merged
HanzoDev30 merged 4 commits intoOct 22, 2026
Conversation
- Disable continuous per-frame dynamic background in ExpandableLayout - Share RecycledViewPool across all setting section RecyclerViews - Cache and avoid redundant background drawable allocations in PreferenceSwitchGroup - Eliminate quadratic DiffUtil and post() queue spam in SettingsAdapter - Cache preference accesses in ShapeUtil - Debounce search queries to 200ms
…nts in FileSortManager
…with password and split volumes
Contributor
Author
📦 Complete Technical Breakdown (0 to 100): Implementation of Full Archive Creation & Extraction (ZIP, RAR, 7Z, TAR, Password Support & Multi-Part Volumes)📌 SummaryThis update introduces complete, desktop-grade archive management to Ghostide (comparable to WinRAR and 7-Zip). Users can now create password-protected and multi-part/split ZIP archives from any folder or selection of files, as well as extract ZIP, RAR (including multi-volume 🔍 1. Architecture & Design BreakdownA. Archive Creation (
|
Owner
|
@Afton-programmer using M3Theme.java for add new Layout res |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📦 Complete Technical Breakdown (0 to 100): Implementation of Full Archive Creation & Extraction (ZIP, RAR, 7Z, TAR, Password Support & Multi-Part Volumes)
📌 Summary
This update introduces complete, desktop-grade archive management to Ghostide (comparable to WinRAR and 7-Zip). Users can now create password-protected and multi-part/split ZIP archives from any folder or selection of files, as well as extract ZIP, RAR (including multi-volume
.part1.rar/.r00), 7Z, and TAR archives with automatic password prompting and real-time progress feedback.🔍 1. Architecture & Design Breakdown
A. Archive Creation (
ZipUtil.java&dialog_create_zip.xml)ivMore) on any directory row inFileManagerActivitynow displays "Create ZIP file" (create_zip_title).<item_name>.zipor custom name.AesKeyStrength.KEY_STRENGTH_256).createSplitZipFileFromFolder/createSplitZipFile/addFolder/addFilerun asynchronously on anExecutorService.ProgressMonitor(monitor.getWorkCompleted(),monitor.getTotalWork(),monitor.getPercentDone(),monitor.getFileName()), providing smooth, accurate real-time UI progress.B. Universal Extraction Engine (
ArchiveExtractUtil.java).zipand split multi-volume zip files (.z01,.z02, ....zip). Handled via Zip4j..rar, modern multi-volume (.part1.rar,.part2.rar), and legacy multi-volume (.r00,.r01). Handled viacom.github.junrar:junrar:7.5.5..7z): Single and password-protected 7z archives via Apache Commons Compress (SevenZFile)..tar,.tar.gz,.tgz,.tar.bz2,.tbz2,.tar.xz,.txzviaTarArchiveInputStreamcombined withGZIPInputStream,BZip2CompressorInputStream, andXZCompressorInputStream.resolveFirstVolume):archive.part2.rarorarchive.z01), the engine scans the directory for the primary header volume (archive.part1.rarorarchive.zip) and starts extraction from there.promptPasswordSync):CountDownLatch.dialog_archive_password.xml) is rendered on the UI thread asking the user for the password.if (sanitizedName.contains("..")) continue;to prevent directory traversal / zip-slip vulnerabilities.C. User Interface Integration (
FileManagerActivity.java).zipfile shows an action dialog: "Browse Archive" (internal zip explorer) or "Extract Archive"..rar,.7z, or other archive directly launches the extraction destination dialog.M3Theme.javaspecifications, without hardcoded color values.values-fa) string sets.📊 2. Verification on CI (GitHub Actions)
feat/archive-manageraca04f2:feat(archive): add comprehensive ZIP and RAR creation and extraction with password and split volumes62848a9:fix(archive): use correct Archive constructors and cancelAllTasks on ProgressMonitor39833745425:build-plugin-sdk: SUCCESS (58s)build(assembleDebug): SUCCESS (2m 1s) -> Generatedapp-debug.apkandghostide-plugin-sdk.aar.39833745432:build: SUCCESS (2m 31s).