<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JuanFran</title>
    <description>The latest articles on DEV Community by JuanFran (@maxbleu).</description>
    <link>https://dev.to/maxbleu</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1181796%2Ff30b453d-c367-4982-bb0d-7286a48fa3d5.jpg</url>
      <title>DEV Community: JuanFran</title>
      <link>https://dev.to/maxbleu</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/maxbleu"/>
    <language>en</language>
    <item>
      <title>How can you pack up your Electron proyect in windows?</title>
      <dc:creator>JuanFran</dc:creator>
      <pubDate>Fri, 23 Aug 2024 16:53:56 +0000</pubDate>
      <link>https://dev.to/maxbleu/how-can-you-pack-up-your-electron-proyect-in-windows-4d07</link>
      <guid>https://dev.to/maxbleu/how-can-you-pack-up-your-electron-proyect-in-windows-4d07</guid>
      <description>&lt;p&gt;To pack up your Electron proyect in &lt;strong&gt;windows&lt;/strong&gt;, you will need to install a dependency in a electron proyect still created.&lt;/p&gt;

&lt;p&gt;This dependency is called &lt;strong&gt;electron-builder&lt;/strong&gt;. The installation command it is the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install --save-dev electron-builder
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Secondly, it is necessary make a &lt;strong&gt;build&lt;/strong&gt; of our proyect so you need to execute this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run build:win
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Thirdly, if you want to pack up your proyect, you will put in file &lt;strong&gt;package.json&lt;/strong&gt;, in the section &lt;strong&gt;scripts&lt;/strong&gt; this script:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"electron-pack": "npm run build &amp;amp;&amp;amp; electron-builder"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--0wze7VF1--%2Ff_auto%2Fv1724429992%2Fugc%2Fcontent_825d7914-2c3b-497b-91bb-12dc95cb3edf" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--0wze7VF1--%2Ff_auto%2Fv1724429992%2Fugc%2Fcontent_825d7914-2c3b-497b-91bb-12dc95cb3edf" alt="image" width="697" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finnaly, for pack up your proyect, you will execute this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run electron-pack
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The installer it will be installed in the &lt;strong&gt;dist&lt;/strong&gt; directory and the name of your aplication installer it will be something like this name  &lt;strong&gt;[your_electron_proyect_name]-[version]-setup.exe&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;For install your app in your device you only need to click in the file named before and it will be installed in your &lt;strong&gt;Desktop&lt;/strong&gt; directory.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--pCcyP-XA--%2Ff_auto%2Fv1724431107%2Fugc%2Fcontent_25da6815-10a5-4412-946e-18561a886ff2" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--pCcyP-XA--%2Ff_auto%2Fv1724431107%2Fugc%2Fcontent_25da6815-10a5-4412-946e-18561a886ff2" alt="image" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>electron</category>
      <category>windows</category>
      <category>executable</category>
      <category>exe</category>
    </item>
    <item>
      <title>Build a desktop app with Electron + Vite + React EASYLY</title>
      <dc:creator>JuanFran</dc:creator>
      <pubDate>Tue, 13 Aug 2024 16:37:15 +0000</pubDate>
      <link>https://dev.to/maxbleu/build-a-desktop-app-with-electron-vite-react-easyly-3c81</link>
      <guid>https://dev.to/maxbleu/build-a-desktop-app-with-electron-vite-react-easyly-3c81</guid>
      <description>&lt;p&gt;To create a Electron proyect with Vite and React desktop app you can to create it in two ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Electron quick-start&lt;/li&gt;
&lt;li&gt;Vite&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Electron @Quick-Start
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Instalation
&lt;/h3&gt;

&lt;p&gt;For create a desktop app with Electron + Vite + React with electron quick-start you need to execute this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create @quick-start/electron [your_proyect_name]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the next option you need to choose the frontend framework and in this case you will choose &lt;strong&gt;React&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--3sfUbd6T--%2Ff_auto%2Fv1723560186%2Fugc%2Fcontent_9d9c710c-d3f4-4b7f-97f1-7b37f7a468cb" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--3sfUbd6T--%2Ff_auto%2Fv1723560186%2Fugc%2Fcontent_9d9c710c-d3f4-4b7f-97f1-7b37f7a468cb" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In this case, we don't want use Typescript so we won't add it. We will select the option &lt;strong&gt;No&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--ldz8kXYJ--%2Ff_auto%2Fv1723560324%2Fugc%2Fcontent_aebcdcda-7fc0-466f-a524-b1f658a8c034" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--ldz8kXYJ--%2Ff_auto%2Fv1723560324%2Fugc%2Fcontent_aebcdcda-7fc0-466f-a524-b1f658a8c034" alt="image" width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We don't want the updater plugin so we will select &lt;strong&gt;No&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--Q66B3Jq8--%2Ff_auto%2Fv1723560468%2Fugc%2Fcontent_37c9ad51-1a58-4b4c-8755-c6847c096b0d" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--Q66B3Jq8--%2Ff_auto%2Fv1723560468%2Fugc%2Fcontent_37c9ad51-1a58-4b4c-8755-c6847c096b0d" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And we don't want the electron dowload mirror proxy so we will select &lt;strong&gt;No&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--8CzDibVZ--%2Ff_auto%2Fv1723560553%2Fugc%2Fcontent_cf49396a-e6a4-452a-a06d-c4da011721e5" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--8CzDibVZ--%2Ff_auto%2Fv1723560553%2Fugc%2Fcontent_cf49396a-e6a4-452a-a06d-c4da011721e5" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, you have your electron proyect with Vite and React created by Electron @Quick-start.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vite
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Instalation
&lt;/h3&gt;

&lt;p&gt;For create a desktop app with Electron + Vite + React with Vite you need to execute the same command for create a Vite proyect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm create vite@latest [your_proyect_name]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now in the frameworks options you will choose &lt;strong&gt;Others&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--_ABWvWf1--%2Ff_auto%2Fv1723559154%2Fugc%2Fcontent_ec82dbfd-b2e6-487d-a2fe-61653c952463" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--_ABWvWf1--%2Ff_auto%2Fv1723559154%2Fugc%2Fcontent_ec82dbfd-b2e6-487d-a2fe-61653c952463" alt="image" width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the next option you will can choosing beetwen build a electron proyect with vite or build a vite proyect with other framework and in this option you will choose &lt;strong&gt;create-electron-vite&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--DIN-ylly--%2Ff_auto%2Fv1723559337%2Fugc%2Fcontent_183560bb-35b1-4625-87e7-d2173590c238" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--DIN-ylly--%2Ff_auto%2Fv1723559337%2Fugc%2Fcontent_183560bb-35b1-4625-87e7-d2173590c238" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you need to select the framework frontend for you electron proyect: Vue, React or Vanilla. In this case you will select &lt;strong&gt;React&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--sUOha4Iw--%2Ff_auto%2Fv1723559445%2Fugc%2Fcontent_8f3f5830-06fc-4621-a3c9-231db06ca979" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--sUOha4Iw--%2Ff_auto%2Fv1723559445%2Fugc%2Fcontent_8f3f5830-06fc-4621-a3c9-231db06ca979" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Finally, you have your electron proyect with Vite and React created by Vite. &lt;/p&gt;

&lt;p&gt;The configuration and launching, it is the same like a react proyect &lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;AND&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Launching
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm run dev
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  RESULTS
&lt;/h2&gt;

&lt;p&gt;Electron proyect created by &lt;strong&gt;Electron quick-start&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--LqUesTpO--%2Ff_auto%2Fv1723560702%2Fugc%2Fcontent_1cb4909b-122a-454e-96ac-325e28f0f498" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--LqUesTpO--%2Ff_auto%2Fv1723560702%2Fugc%2Fcontent_1cb4909b-122a-454e-96ac-325e28f0f498" alt="image" width="800" height="449"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Electron proyect created by &lt;strong&gt;Vite&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--UR-dHj-P--%2Ff_auto%2Fv1723559983%2Fugc%2Fcontent_2d754564-5d68-4b6b-a998-bfc7bead5538" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fres.cloudinary.com%2Fdaily-now%2Fimage%2Fupload%2Fs--UR-dHj-P--%2Ff_auto%2Fv1723559983%2Fugc%2Fcontent_2d754564-5d68-4b6b-a998-bfc7bead5538" alt="image" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>electron</category>
      <category>react</category>
      <category>vite</category>
      <category>wedev</category>
    </item>
  </channel>
</rss>
