Skip to content

Commit f5bbbe5

Browse files
committed
Published as nam package
1 parent 759bc07 commit f5bbbe5

File tree

6 files changed

+89
-1
lines changed

6 files changed

+89
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@
1111
*.la
1212
*.a
1313
genfatfs
14+
node_modules/
15+
prebuilds/

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
genfatfs
22
========
3+
[![Build Status](https://semaphoreci.com/api/v1/nodeos/genfatfs/branches/master/badge.svg)](https://semaphoreci.com/nodeos/genfatfs)
34

4-
Kosagi mirror of genfatfs
5+
fat filesystem generator for embedded systems
6+
7+
`genfatfs` packed as a npm module

genfatfs

57.1 KB
Binary file not shown.

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = __dirname

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "genfatfs",
3+
"version": "1.0.0",
4+
"description": "fat filesystem generator for embedded systems",
5+
"bin": "genfatfs",
6+
"main": "index.js",
7+
"scripts": {
8+
"BigRedButton": "scripts/BigRedButton",
9+
"install": "prebuild --download https://github.com/NodeOS/nodeos-cross-toolchain/releases/download/v{version}/{platform}-{arch}.tar.gz"
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "git+https://github.com/NodeOS/genfatfs.git"
14+
},
15+
"keywords": [
16+
"fat",
17+
"fatfs",
18+
"vfat",
19+
"fat32"
20+
],
21+
"author": "Nathan Huizinga <[email protected]>",
22+
"contributors": [
23+
"Jesús Leganés Combarro 'piranna' <[email protected]>"
24+
],
25+
"license": "GPL-2.0",
26+
"bugs": {
27+
"url": "https://github.com/NodeOS/genfatfs/issues"
28+
},
29+
"homepage": "https://github.com/NodeOS/genfatfs#readme",
30+
"dependencies": {
31+
"prebuild": "piranna/prebuild"
32+
}
33+
}

scripts/BigRedButton

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env sh
2+
3+
#
4+
# Build genfatfs
5+
#
6+
7+
make || exit 1
8+
9+
#
10+
# Pack genfatfs in a node-gyp compatible way
11+
#
12+
13+
OS="`uname`"
14+
case $OS in
15+
'Linux') PLATFORM=linux ;;
16+
'FreeBSD') PLATFORM=freebsd ;;
17+
'WindowsNT') PLATFORM=win ;;
18+
'Darwin') PLATFORM=mac ;;
19+
'SunOS') PLATFORM=solaris ;;
20+
'AIX') PLATFORM=linux ;;
21+
22+
*)
23+
echo Unknown OS "$OS"
24+
exit 2
25+
;;
26+
esac
27+
28+
MACHINE="`uname -m`"
29+
case $MACHINE in
30+
'x86_64') ARCH=x64 ;;
31+
32+
*)
33+
echo Unknown MACHINE "$MACHINE"
34+
exit 3
35+
;;
36+
esac
37+
38+
39+
40+
mkdir -p prebuilds &&
41+
tar -cf - genfatfs | gzip > prebuilds/$PLATFORM-$ARCH.tar.gz || exit 4
42+
43+
#
44+
# Upload release to GitHub
45+
#
46+
47+
if [ "$GITHUB_TOKEN" ]; then
48+
prebuild --upload-all $GITHUB_TOKEN || exit 5
49+
fi

0 commit comments

Comments
 (0)