File tree Expand file tree Collapse file tree 6 files changed +89
-1
lines changed Expand file tree Collapse file tree 6 files changed +89
-1
lines changed Original file line number Diff line number Diff line change 1111* .la
1212* .a
1313genfatfs
14+ node_modules /
15+ prebuilds /
Original file line number Diff line number Diff line change 11genfatfs
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
Original file line number Diff line number Diff line change 1+ module . exports = __dirname
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments