-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpapp.cc
More file actions
31 lines (25 loc) · 833 Bytes
/
papp.cc
File metadata and controls
31 lines (25 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
* PAPP browser
* Copyright(2014-2015) by tom zhou, iwebpp@gmail.com. All Rights Reserved.
*/
#include <stdio.h>
#include <errno.h>
#if defined(WIN32) || defined(_WIN32)
#include <process.h>
#else
#include <unistd.h>
#endif
int main(int argc, char * argv[]) {
printf("Make friends with PAPP Browser!\n"
" Copyright(2014-2015) by iwebpp.com\n\n");
#if defined(WIN32) || defined(_WIN32)
_execl("./back/bin/windows/node.exe", "./back/bin/windows/node.exe", "./index.js", NULL);
#elif defined(__APPLE__)
execl("./back/bin/mac/node", "./back/bin/mac/node", "./index.js", NULL);
#else
execl("./back/bin/linux64/node", "./back/bin/linux64/node", "./index.js", NULL);
#endif
perror("PAPP browser execute failed");
printf("You can send failure info by email to iwebpp@gmail.com for support ...\n\n");
return -1;
}