{"id":13745178,"url":"https://github.com/Corsaair/as3shebang","last_synced_at":"2025-05-09T04:34:33.667Z","repository":{"id":30345447,"uuid":"33897865","full_name":"Corsaair/as3shebang","owner":"Corsaair","description":"as3shebang – The ActionScript 3.0 Interpreter","archived":false,"fork":false,"pushed_at":"2016-02-02T01:37:36.000Z","size":3468,"stargazers_count":36,"open_issues_count":0,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T05:05:47.478Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Corsaair.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-13T22:39:22.000Z","updated_at":"2024-06-26T11:18:09.000Z","dependencies_parsed_at":"2022-09-07T08:03:39.323Z","dependency_job_id":null,"html_url":"https://github.com/Corsaair/as3shebang","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fas3shebang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fas3shebang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fas3shebang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Corsaair%2Fas3shebang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Corsaair","download_url":"https://codeload.github.com/Corsaair/as3shebang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224819844,"owners_count":17375342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T05:01:24.165Z","updated_at":"2024-11-15T17:31:27.224Z","avatar_url":"https://github.com/Corsaair.png","language":"Shell","funding_links":[],"categories":["Unsorted"],"sub_categories":["Other API"],"readme":"as3shebang – The ActionScript 3.0 Interpreter\n=============================================\n\n**as3shebang** is an executable program based on the RedTamarin runtime.\n\nIt allows you to run uncompiled ActionScript 3.0 source code\nas an executable shell script.\n\nThe executable is totally independent of any other installed runtimes,\nand so can be installed with Redtamarin runtimes in parallel or without them.\n\n\nInstall\n-------\n\nDownload the package for your operating system\n\n  - **Windows**  \n    `as3shebang_1.0.0_win32.deb` for 32-bit systems  \n    `as3shebang_1.0.0_win64.deb` for 64-bit systems\n  - **Mac OS X**  \n    `as3shebang_1.0.0_darwin-i386.deb` for 32-bit systems  \n    `as3shebang_1.0.0_darwin-amd64.deb` for 64-bit systems\n  - **Linux**  \n    `as3shebang_1.0.0_i386.deb` for 32-bit systems  \n    `as3shebang_1.0.0_amd64.deb` for 64-bit systems\n\n\n### Windows Install\n\nYou will need a POSIX environment setup  \nand may have to install `redtamarin-setup.bat` first  \nsee [Redtamarin Windows Environment Setup][RWES]\n\ninstall  \n`$ wpkg -i as3shebang_1.0.0_win64.deb`\n\n\n### Mac OS X Install\n\nYou need the command-line tool `dpkg` installed  \neither use [MacPorts][MACPORTS] `$ port install dpkg`\nor [Brew][BREW] `$ brew install dpkg`\n\ninstall  \n`$ sudo dpkg -i as3shebang_1.0.0_darwin-amd64.deb`\n\nIf you receive some errors because of gnutar not found,\nyou can force the install with  \n`$ sudo dpkg --force-all -i as3shebang_1.0.0_darwin-amd64.deb`\n\n\n### Linux Install\n\n`$ sudo dpkg -i as3shebang_1.0.0_amd64.deb`\n\n\n\nExample\n-------\n\nCreate a script  \n`$ touch test`\n\nMake it executable  \n`$ chmod +x test`\n\nEdit the script  \n`$ nano test`\n\nStarts the script with the shebang line\n```as3\n#!/usr/bin/as3shebang\n\n// Use AS3 to write some shell scripts :)\nimport shell.Program;\nimport shell.Runtime;\n\ntrace( \"hello world\" );\n\ntrace( \"    Program.type = \" + Program.type );\ntrace( \"Program.filename = \" + Program.filename );\ntrace( \"startupDirectory = \" + Program.startupDirectory );\ntrace( \"    Program args = \" + Program.argv );\ntrace( \"\" );\ntrace( \"Redtamarin v\" + Runtime.version + \" \" + (Runtime.is64bit() ? \"64-bit\": \"32-bit\" ) );\n```\n\nRun the script  \n`$ ./test`  \n`$ ./test a b c`\n\n\n[RWES]: https://github.com/Corsaair/redtamarin/wiki/RedtamarinWindowsEnvironmentSetup\n[MACPORTS]: https://www.macports.org/\n[BREW]: http://brew.sh/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCorsaair%2Fas3shebang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCorsaair%2Fas3shebang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCorsaair%2Fas3shebang/lists"}