Nativefier + Electron = Webhu → app

nativefier

Chokwadi makanzwa nezveErekitironi, uye zvakare kubva kuNativefier. Isoftware inokwanisa kushandura mawebhusaiti ako aunofarira kuita app kuti iite zvakasununguka, asi haigone kufambiswa munharaunda, sezvo Indaneti ichiri kudiwa kuti sevhisi yewebhu ishande. Ingori nzira ye "kuputira" webhu muchimiro cheapp, uye unogona kuzviita nechero webhusaiti, kubva kubhurogi kuti uiverenge, kuenda kuwebhu app seCanva, kuburikidza neGoogle Docs, nezvimwe.

Kuti uite izvi, mune ino tutorial tinokuratidza kuti ungaita sei gadza uye shandisa nenzira iri nyore uye yakatsanangurwa nhanho nhanho (muDEB distros yereferensi, asi unogona kuzviita mune chero imwe uchishandisa iyo yemuno pasuru maneja):

sudo apt-get update

sudo apt-get install npm

sudo npm install nativefier -g

Zvino zvayakaiswa, chinotevera kugadzira a URL yakavakirwa Electron furemu zvaunoda neNativefier. Kuti uite izvi, iwe unongofanirwa kutevedzera 2 nhanho dziri nyore:

  1. Vhura browser yako uye tsvaga webhusaiti yaunoda kugadzira app. Zvino, mubhurawuza kero kero, kopira iyo URL.
  2. Muhwindo rekupedzisira shandisa Nativefier kugadzira iyo yakakosha app uchishandisa iyo URL. Kwazvo:
nativefier -p linux -a x86 -n nombre https://url.copiada.es

Zviripachena, iwe uchafanirwa kutsiva iyo URL neiyo yawakakopa mune yako uye zita rine zita raunoda kupa iyo app. Iwe unogona zvakare kushandura dhizaini, kunyangwe iyo yakawanda inoshandisa x86.

Mushure mekuita murairo uyu, Nativefier inosanganisira iyo URL yawakaisa muElectron app. Kana zvese zvakabudirira, hapana meseji yekukanganisa ichaonekwa mune terminal. Uye kana chimwe chinhu chakaitika, chichakuudza zvakaitika. Kana wapedza, unogona kuwana iyo app uye wotanga kuishandisa nenzira iri nyore:

cd *-linux-x64

sudo chmod +x *

./nombre

Muzita unofanira kuisa zita rawakapa app yako kuti riite. Iye zvino unofanira kungonakidzwa nazvo, asi yeuka kuti unofanira kuva neInternet kuti ukwanise kuishandisa.


Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa. Raida minda anozivikanwa ne *

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako

      Diego Ospina akadaro

    Zviri nyore kuisa saiti sekushandisa neEdge uye ndizvozvo