<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[מדריך | מדריך קמפול  Web ל EXE עם אפשרות לשינוי ועריכת הקבצים ללא קמפול מחדש!]]></title><description><![CDATA[<h6><a class="anchor-offset" name="מדריך-קמפול-web-ל-exe-עם-אפשרות-שינוי-ה-html-css-js-ללא-קמפול-מחדש."></a>מדריך קמפול Web ל  EXE, עם אפשרות שינוי ה html - css - js ללא קמפול מחדש.</h6>
<p dir="rtl"><strong>שלב א':</strong></p>
<ul>
<li>יש ליצור תיקיה שהיא תהיה תיקית הפרויקט, ובתוכה ליצור תיקיה לדוגמה בשם:
<ul>
<li><strong>web</strong></li>
</ul>
</li>
<li>בתוכה יש לשים את שלושת הקבצים  לצורך הענין זה יהיה השמות שלהם:
<ul>
<li><strong>index.html</strong></li>
<li><strong>style.css</strong></li>
<li><strong>script.js</strong></li>
</ul>
</li>
<li>תמונות ורקעים יש לשים בתוך תיקיה פנימית לדוגמה:
<ul>
<li><strong>images</strong></li>
</ul>
</li>
<li>מחוץ לתיקית <strong>web</strong> יש לפתוח קובץ פייתון חדש, לדוגמה בשם:
<ul>
<li><strong><a href="http://main.py" rel="nofollow ugc">main.py</a></strong><br />
ויש לשים את סמל התוכנה מחוץ לתיקית web בתיקית הפרויקט לדוגמה בשם :</li>
<li><strong>icon.ico</strong><br />
יש לשים לב שהיא תהי תמונה מרובעת שלא תמרח</li>
</ul>
</li>
</ul>
<p>
                <button class="btn btn-primary extended-markdown-spoiler" data-bs-toggle="collapse" data-bs-target="#spoiler393" aria-expanded="false" aria-controls="spoiler393">
                    Spoiler <i class="fa fa-eye"></i>
                </button>
                </p><div class="collapse" id="spoiler393">
                    <div class="card card-body spoiler"><p dir="auto"> <strong>מבנה התיקיות כרגע לפי הדוגמה</strong></p>
<hr />
<ul>
<li><strong>תיקית הפרויקט</strong>
<ul>
<li><strong><a href="http://main.py" rel="nofollow ugc">main.py</a></strong></li>
<li><strong>icon.ico</strong></li>
<li><strong>web</strong>
<ul>
<li><strong>index.html</strong></li>
<li><strong>style.css</strong></li>
<li><strong>script.js</strong></li>
<li><strong>images</strong>
<ul>
<li><strong>bg.png</strong></li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<hr />
<p dir="rtl">כל אחד יתאים לפי המבנה שלו </p></div>
                </div><p></p>
<hr />
<p dir="rtl"><strong>שלב ב':</strong><br />
פתח cmd בתיקית הפרויקט והתקן את הספריות הבאות:</p>
<ul>
<li>הפעל סביבה ווירטואלית:</li>
</ul>
<pre><code>python -m venv venv
</code></pre>
<ul>
<li>הפעל אותה:</li>
</ul>
<pre><code>venv\Scripts\activate
</code></pre>
<ul>
<li>התקן את PyWebView:</li>
</ul>
<pre><code>pip install pywebview
</code></pre>
<hr />
<p dir="rtl"><strong>שלב ג'</strong><br />
בתוך הקובץ: <strong><a href="http://main.py" rel="nofollow ugc">main.py</a></strong> יש לשים את הקוד הבא:</p>
<pre><code>import webview
import os

current_dir = os.path.dirname(__file__)
web_folder = os.path.join(current_dir, 'web')

webview.create_window('My App', web_folder)
webview.start()
</code></pre>
<p>
                <button class="btn btn-primary extended-markdown-spoiler" data-bs-toggle="collapse" data-bs-target="#spoiler394" aria-expanded="false" aria-controls="spoiler394">
                    Spoiler <i class="fa fa-eye"></i>
                </button>
                </p><div class="collapse" id="spoiler394">
                    <div class="card card-body spoiler"><p dir="auto"> <strong>שינויי אפשריים:</strong></p>
<ul>
<li>
<p dir="rtl">שם החלון 'My App' → אפשר לשנות לכל שם רצוי.</p>
</li>
<li>
<p dir="rtl">אם תוסיף תיקיות נוספות ב‑web, ודא שהנתיב נכון.<br />
</p></li></ul></div>
                </div><p></p>


<hr />
<p dir="rtl"><strong>שלב ד':</strong><br />
קמפול ל exe ע"י הפקודה הבאה:</p>
<pre><code>pyinstaller --noconfirm --onefile --windowed --add-data "web;web" --icon "icon.ico" main.py
</code></pre>
<p dir="rtl">כל אחד יתאים את זה לפי התיקיות שלו:</p>
<p>
                <button class="btn btn-primary extended-markdown-spoiler" data-bs-toggle="collapse" data-bs-target="#spoiler395" aria-expanded="false" aria-controls="spoiler395">
                    Spoiler <i class="fa fa-eye"></i>
                </button>
                </p><div class="collapse" id="spoiler395">
                    <div class="card card-body spoiler"><p dir="auto"><br />
<strong>החלקים הניתנים לעריכה:</strong></p>
<ul>
<li>לשנות לשמות אצלכם בפועל:</li>
</ul>
<pre><code>main.py
</code></pre>
<pre><code>icon.ico
</code></pre>
<pre><code>web;web
</code></pre>
<p dir="rtl">כנ"ל בקובץ ה <a href="http://main.py" rel="nofollow ugc">main.py</a><br />
</p></div>
                </div><p></p>
<p dir="rtl">כל הקבצים שבתיקיית web יכולים להשתנות בלי צורך  בקימפול מחדש</p>
<h4><a class="anchor-offset" name="strong-בהצלחה..-שמחתי-לעזור...-strong"></a><strong>בהצלחה.. שמחתי לעזור...</strong></h4>
]]></description><link>https://21f4c8pf.uks1.devtunnels.ms:7777/topic/249/מדריך-מדריך-קמפול-web-ל-exe-עם-אפשרות-לשינוי-ועריכת-הקבצים-ללא-קמפול-מחדש</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 03:16:02 GMT</lastBuildDate><atom:link href="https://21f4c8pf.uks1.devtunnels.ms:7777/topic/249.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Oct 2026 12:39:14 GMT</pubDate><ttl>60</ttl></channel></rss>