﻿NewWorld OS USB image reconstruction

Extract every file in this bundle into the same folder on your computer.
The scripts create an ISO file. You choose the USB device later in your imaging tool.
Use a local drive with room for the resulting ISO and, when downloading the base,
a temporary copy of the official Debian ISO. A drive supporting files over 4 GB
(such as NTFS on Windows) is needed when the finished image exceeds 4 GB.

Windows 10/11, Windows PowerShell 5.1
  Open PowerShell in the extracted folder. Run:
    .\Reconstruct.ps1
  To use a downloaded Debian base or choose the output path:
    .\Reconstruct.ps1 -Base "D:\Downloads\debian-live.iso" -Output "D:\Downloads\newworld-amd64.iso"
  If Windows marks the downloaded scripts as blocked, inspect Reconstruct.ps1
  and use its file Properties > Unblock option if permitted by your device policy.

Linux, Python 3.9 or later
  From the extracted folder, run:
    python3 reconstruct.py
  To use a downloaded base:
    python3 reconstruct.py --base /path/to/debian-live.iso --output /path/to/newworld-amd64.iso

The exact Debian base filename and release are in manifest.json. Place that
file alongside the scripts or supply its path. Otherwise the scripts try the
listed official Debian download and archive URLs. The base, changes and
finished ISO are checked using SHA-256. Only the finished ISO is published to
the chosen name. An existing output is never replaced. If a download fails,
provide the exact base locally and run the command again.

Compare the finished SHA-256 with the independently supplied checksum from the
release. Then use a USB image writer, select the ISO and verify the USB drive
name and capacity before writing. Writing the ISO will erase the chosen stick.


הרכבת קובץ ההתקנה

חלצו את כל הקבצים לתיקייה אחת. בסיום תקבלו קובץ ⁦ISO⁩. בשלב זה לא מתבצעת כתיבה לכונן ⁦USB⁩.

במערכת ⁦Windows⁩, פתחו חלון ⁦PowerShell⁩ בתיקייה שחילצתם והפעילו את הפקודה הבאה.
הפקודות מופיעות גם בחלק האנגלי לעיל, לנוחות ההעתקה.

    .\Reconstruct.ps1

במערכת ⁦Linux⁩ הריצו באותה תיקייה את הפקודה הבאה.

    python3 reconstruct.py

אפשר להשתמש בעותק מקומי של קובץ ⁦Debian⁩ המקורי באמצעות הדגל ⁦-Base⁩ במערכת ⁦Windows⁩
או ⁦--base⁩ במערכת ⁦Linux⁩. השם המדויק וחתימת ⁦SHA-256⁩ מופיעים בקובץ ⁦manifest.json⁩.
אם אין עותק מקומי, הכלי ינסה להוריד את הקובץ ממקור רשמי של ⁦Debian⁩.
ודאו שבכונן יש מספיק מקום הן לקובץ הסופי והן לעותק זמני של קובץ המקור.
לשמירת קובץ שגודלו מעל ⁦4 GB⁩ נדרשת מערכת קבצים מתאימה, למשל ⁦NTFS⁩.

בסיום, השוו את חתימת ⁦SHA-256⁩ של הקובץ הסופי לחתימה שנמסרה בנפרד.
בכלי לכתיבת תמונת דיסק בחרו בקובץ שהתקבל, בדקו את השם והנפח של כונן היעד ורק אז כתבו אליו.
הכתיבה תמחק את התוכן של כונן ה־⁦USB⁩ שתבחרו.
