Compare commits

..

6 Commits

Author SHA1 Message Date
Thomas Hobson d036ff1e91
Merge pull request #424 from Hydrazer/emojicode
pkg(emojicode-1.0.2): added emojicode 1.0.2
2022-02-24 20:43:38 +13:00
Thomas Hobson 3eff371bd4
Merge branch 'master' into emojicode 2022-02-24 19:18:08 +13:00
Thomas Hobson 1b76bd8d1d
Merge pull request #430 from Brikaa/base64
Include non-ascii in CLI binary checking
2022-02-24 18:54:48 +13:00
Thomas Hobson cbd781c834
Merge branch 'master' into base64 2022-02-24 18:27:36 +13:00
Omar Brikaa 37b5b02067 Include non-ascii in cli binary checking 2022-01-30 14:49:38 +02:00
Hydrazer 440559f7b4 pkg(emojicode-1.0.2): added emojicode 1.0.2 2022-01-17 18:05:17 -07:00
8 changed files with 42 additions and 1 deletions

View File

@ -246,11 +246,12 @@ async function run_non_interactively(files, argv) {
exports.handler = async argv => {
const files = [...(argv.files || []), argv.file].map(file_path => {
const buffer = fs.readFileSync(file_path);
// Checks for <20> (the replacement character) after encoding the buffer to uf8
const encoding =
(buffer
.toString()
.split('')
.some(x => x.charCodeAt(0) >= 128) &&
.some(x => x.charCodeAt(0) === 65533) &&
'base64') ||
'utf8';
return {

15
packages/emojicode/1.0.2/build.sh vendored Normal file
View File

@ -0,0 +1,15 @@
curl -L https://github.com/emojicode/emojicode/releases/download/v1.0-beta.2/Emojicode-1.0-beta.2-Linux-x86_64.tar.gz -o emoji.tar.gz
tar xzf emoji.tar.gz
mv Emojicode-1.0-beta.2-Linux-x86_64 emoji
rm emoji.tar.gz
cd emoji
./install.sh
chmod +x emojicodec
cd ..

4
packages/emojicode/1.0.2/compile vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
"$EMOJI_PATH"/emojicodec -S "$EMOJI_PATH"/packages "$1" -o "bruh.exe"
chmod +x "bruh.exe"

5
packages/emojicode/1.0.2/environment vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH
export EMOJI_PATH=$PWD/emoji

View File

@ -0,0 +1,7 @@
{
"language": "emojicode",
"version": "1.0.2",
"aliases": [
"emojic"
]
}

5
packages/emojicode/1.0.2/run vendored Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
shift
./"bruh.exe" "$@"

3
packages/emojicode/1.0.2/test.emojic vendored Normal file
View File

@ -0,0 +1,3 @@
🏁 🍇
😀 🔤OK🔤❗
🍉

View File

@ -328,6 +328,7 @@ Content-Type: application/json
`dragon`,
`elixir`,
`emacs`,
`emojicode`,
`erlang`,
`file`,
`forte`,