Zvichida vazhinji vevaverengi vedu vane yavo bhurogu, shandisa Teregiramu Webhu kana kungoshandisa chaiwo mamwe mapeji ewebhu mazuva ese. Kune avo vese, isu tichadzidzisa maitiro ekugadzira desktop desktop kune chero peji rewebhu, nyore uye nekukurumidza, uchishandisa nativefier.
Chii chinonzi Nativefier?
nativefier yakavhurwa sosi, multiplatform chishandiso, chakagadzirwa ne Jia hao uchishandisa JavaScript, HTML neCSS (ine Electron), kugadzira desktop desktop kune chero peji rewebhu, nyore uye nekukurumidza.
nativefier inotarisa pakubvumidza vashandisi kuita mashandisirwo aine mashoma masisitimu, nekuti kunze kweku "kuputira" dandemutande, rinokwanisa kuona icon uye zita reapplication otomatiki.
Kuvandudzwa kwaro kwakafemerwa, nekushungurudzika kwazvinogona kuita, kuva nekuchinja ⌘-tab
o alt-tab
uye tsvaga nguva dzose mumatebhu mazhinji, kana uchishanda nemapeji atinoshandisa kazhinji se Facebook Messenger.
Nativefier akaiswa sei?
Kuisa Nativefier tinofanirwa kunge takaisa Node.js 4.0 kana kumusoro, tobva taita mune yedu console:
$ npm gadza nativefier -g
Nzira yekugadzira desktop desktop pamwe naNativefier?
Gadzira desktop desktop yechero peji rewebhu ne nativefier Zviri nyore kwazvo, zvakakwana kuti tizviwanire mune dhairekitori iyo yatiri kuda kuchengeta iyo application kuti igadzire nekuita unotevera kuraira
$nativefier "https://blog.desdelinux.com"
nativefier ichaona zita rekushandisa concatenating, zita rewebhu, mashandiro ayo uye dhizaini yayo. Kana iwe uchida kusarudza zita rekushandisa, unogona kuzviita nekutsanangura iyo --name "Medium"
sezvazvinoratidzwa mune inotevera.
$ nativefier --zita "DesdeLinux" "https://blog.desdelinux.com"
Kana iwe uchida kuwedzera kunyorera kumenu yekugovera kwako, unofanirwa kugadzira faira .desktop
en /home/$USER/.local/share/applications
kuisa zvinotevera (chinja dhairekitori kune iro rinoenderana):
[Desktop Entry]
Comment=Aplicación de Escritorio DesdeLinux creado con nativefier
Terminal=false
Name=DesdeLinux
Exec=/the/folder/of/the/DesdeLinux/DesdeLinux
Type=Application
Icon=/the/folder/of/the/DesdeLinux/resources/app/icon.png
Categories=Network;
Ndinovimba unotanga kunakidzwa neako desktop desktop, iwo mapeji aunonyanya kushandisa.
Ndinoshuva kuti dai chimwe chinhu chakanzwisiswa.
Ndakagara ndichirohwa nekusagona kwevanhu vanonyora zvinyorwa zvemacomputer science kuti vaone kuti zvavanonyora hazvisi izvo zvavanofunga kuti vanonyora; izvo zvinogona kunzwisiswa kubva pane zvavanonyora hazvienderane zvachose neizvo zvavanoda kunzwisiswa.
Zvinotora kuedza kwakawanda uye kwekukanganisa kuyedza kuona zvairehwa uye chii, nokudaro, iri dudziro chaiyo yechinyorwa chino.
Iwe unoziva here kuti kunyorera chii? kana desktop ...
Ini ndakagadzirisa chinyorwa nemufananidzo we gif kuti uone kuti iwe unonzwisisa zviri nani chinangwa chekushandisa http://i2.wp.com/blog.desdelinux.net/wp-content/uploads/2016/10/nativefierExample.gif
Usazviparadza ... haufanire kuziva kuti "application" chii, ndoda iro izwi rekuti "webhu" rinoreva.
hazvisi zvishoma kuti iyo linux ingadai yakaguma pano
Asi izvi, pane desktop kana palaptop, zvinoshandisei? Chinangwa chei? Ini handinzwisise zvakawanda, pamwe chimwe chinhu chinonditiza ...
Izvo ndezve chero rudzi rwemakomputa, chinyorwa chakavandudzwa nemufananidzo wechipa kuitira kuti unzwisise zviri nani chinangwa chekushandisa http://i2.wp.com/blog.desdelinux.net/wp-content/uploads/2016/10/nativefierExample.gif
Tsanangura kuti zvinongoshanda pakombuta yetafura… chero bedzi tafura iine makumbo mana.
Izvo hazvishande nematafura akatenderera. channnn
Iwe uri mushandisi weLinux uye zvakare mushandisi weWhatsApp, kusiyana neWindows neMac hapana chekushandisa, saka, unofanirwa kuvhura browser rako uye upinde WhatsApp Webhu, hazvo, chishandiso ichi chinokutendera kuti iwe ugadzire yako wega «native WhatsApp application» pasina kugara uchichinja pakati pematebhu.
Nenzira, mupiro wakanaka, ndakafadzwa neichi chishandiso, saka ndinogona kubvisa izvosie muArchlinux
Icho chinyorwa chakanaka uye nenzira yakajeka
Zvinhu zviviri:
1: Unoisa mune dhairekitori ripi?
2: Unoshandisa injini ipi? Ini ndinobvunza, nekuti izvi zvinondinakidza kuNetflix uye Crackle.
Mazvake… !!!
Ndine urombo mukoma, asi neNetflix haina kundishandira pane kukanganisa kwakabatana ne widevinecmd iyo isinganditendere kutamba chero chinhu, mubrowser inoshanda zvakakwana. Iwe unoziva chero mhinduro?
Chinyorwa chakanaka, asi chakashaya mifananidzo yekugona kunzwisisa, (iyo gif yandisina kuona nekuti kubatana kwangu kunonoka uye kunoramba kwakabatirira kana kurodha pasi)
chinyorwa ichi chakandikodzera kwazvo! Ini ndaida kuzviita kwenguva yakareba ... siya peji rewebhu padoko. Ini ndichaibvuma!
Chinyorwa chakanaka kwazvo ... maita basa.
Kana iyo application iri kugadzirwa desdelinuxSei ichinzi Wassap mu.desktop file?
Yakagadziriswa, zita rechikumbiro rinofanirwa kuverengerwa, mune iyi kesi DesdeLinux (Kunyangwe zvakadaro zvicharamba zvichishanda, chinhu chega chichava nezita risiri iro)
Inoshanda uye iri nyore kushandisa, yakaedzwa neteregiramu yewebhu. Ini ndinowedzera kuti mushure mekuisa iyo natifier kana ichiitwa kuputira imwe dandemutande, 40 ~ 42mb inoenderana neElectron ichatorwa, asi hapana chinomanikidza kushandiswa kwemurairo (tora matanho kune avo vane chinono kubatana)
nativefier «https://web.telegram.org» –name «Teregiramu"
Kudhanilodha electron-v1.1.3-linux-x64.zip
[=======================================]] 100.0% ye 40.4 MB (210.13 kB / s)
Inonakidza. Kunyangwe ini ndisingavone zvine musoro pakuisa chishandiso kugona kuita zvakafanana neGoogle Chrome kana Chromium, ndinonzwisisa kuti kuchave nevaya vanosarudza iyi sarudzo. Rarama kwenguva refu rusununguko rwekusarudza.
Zvakanaka…. basa rakanaka …… rinobatsira kwazvo kwandiri uye nenzira uye zvinonzwisiswa 100%
hola
ndine ubuntu 16.04.1
kufambira mberi kumwe chete
Kana iwe unogona kuisa Chrome kana Chromium uye uite zvakafanana pasina kuisa zvimwe zvinhu. Ndiri kureva, hapana chimwezve ipapo.
Ndakaita nhanho dzese kuti ndiwane mukana weEvernote kubva kudesktop yangu. Zvese zvakaitwa nemazvo. Asi hapana nyaya yekutanga. Iyo inoitisa haitangi. Whyeeeeee ???? Chii chandakaita kuti ndikodzere izvi?
npm kuisa -g nativefier
loadDep: semver → misoro ▀ ╢█████████████ºººººººººººCºººººººCººººººººººC ░ºCºººººº
YAMBIRA injini kugocha@0.13.1: aida: {«node»: »> = 4.6 ″} (ikozvino: {« node »:» 4.2.6 ″, »npmloadDep: uuid → cache wedzera ▀ ╢███████████ ███ºCººººººººººººººººººººººººººººººººººº
YAMBIRIRA injini hawk@6.0.2: yaida: lib / node_modules / nativefier
npm WARN checkPermissions Inoshaya kunyora kupinda kune / usr / local / lib / node_modules
/ usr / local / lib
└──nativefier@7.5.4
npm ERR! Linux 4.8.0-53-generic
npm ERR! argv "/ usr / bin / nodejs" "/ usr / bin / npm" "gadza" "-g" "nativefier"
npm ERR! v4.2.6
npm ERR! npm v3.5.2
npm ERR! nzira / usr / yemuno / lib / node_modules / nativefier
npm ERR! kodhi EACCES
npm ERR! kukanganisa -13
npm ERR! syscall kuwana
npm ERR! Kanganiso: EACCES: mvumo yakarambwa, kuwana '/ usr / yemuno / lib / node_modules / nativefier'
npm ERR! paKanganiso (chizvarwa)
npm ERR! {[Kanganiso: EACCES: mvumo yanyimwa, kuwana '/ usr / yemuno / lib / node_modules / nativefier']
npm ERR! kukanganisa: -13,
npm ERR! kodhi: 'EACCES',
npm ERR! syscall: 'kuwana',
npm ERR! nzira: '/ usr / yemuno / lib / node_modules / nativefier'}
npm ERR!
npm ERR! Ndokumbirawo uedze kumhanya uyu murairo zvakare se mudzi / Administrator.
npm ERR! Ndokumbirawo ubatanidze inotevera faira nechose chikumbiro chekutsigira:
npm ERR! /home/juanka/npm-debug.log
Ini ndinowana iko kukanganisa