{"id":125,"date":"2024-12-27T19:25:14","date_gmt":"2024-12-27T22:25:14","guid":{"rendered":"https:\/\/recover.rdconsolo.com.br\/?p=125"},"modified":"2024-12-27T19:25:14","modified_gmt":"2024-12-27T22:25:14","slug":"adicionar-script-sh-como-aplicativo-no-macos","status":"publish","type":"post","link":"https:\/\/rdconsolo.com.br\/?p=125","title":{"rendered":"Adicionar script sh como aplicativo no macOS"},"content":{"rendered":"\n<p>Podemos transformar qualquer arquivo execut\u00e1vel .sh em um app dentro do desktop macOS, incluindo \u00edcone e atalho no dock.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>certificar que o arquivo sh possui o atributo de execut\u00e1vel<\/li>\n\n\n\n<li>criar um script com o comando [ do shell script \u201csh ~\/pasta\/arquivo.sh\u201d ]<\/li>\n\n\n\n<li>salvar o script<\/li>\n\n\n\n<li>exportar o script para formato de arquivo como aplicativo (isso vai gerar um arquivo .app)<\/li>\n\n\n\n<li>abrir a janela de obter informa\u00e7\u00f5es do arquivo .app gerado<\/li>\n\n\n\n<li>arrastar e soltar o \u00edcone na parte superior esquerda da janela de informa\u00e7\u00f5es<\/li>\n\n\n\n<li>copiar o arquivo .app para a pasta de aplicativos<\/li>\n\n\n\n<li>abrir o aplicativo e fixar o atalho no dock<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Podemos transformar qualquer arquivo execut\u00e1vel .sh em um app dentro do desktop macOS, incluindo \u00edcone e atalho no dock.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[16,35],"class_list":["post-125","post","type-post","status-publish","format-standard","hentry","category-desktop","tag-macos","tag-script"],"_links":{"self":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/125","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=125"}],"version-history":[{"count":1,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=\/wp\/v2\/posts\/125\/revisions\/126"}],"wp:attachment":[{"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rdconsolo.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}