feature: add get-os-folder helper
This commit is contained in:
parent
072ab4caf8
commit
32ad1dfe92
|
@ -0,0 +1,12 @@
|
||||||
|
// @flow
|
||||||
|
import os from 'os';
|
||||||
|
|
||||||
|
export default () => {
|
||||||
|
const platform = os.platform();
|
||||||
|
|
||||||
|
if (platform === 'darwin') {
|
||||||
|
return 'mac';
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'linux';
|
||||||
|
};
|
Loading…
Reference in New Issue