standalone-ruby 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +57 -48
- data/bin/standalone-ruby +5 -3
- data/lib/data/c_compilers/tcc/include/_mingw.h +54 -54
- data/lib/data/c_compilers/tcc/include/assert.h +71 -71
- data/lib/data/c_compilers/tcc/include/conio.h +159 -159
- data/lib/data/c_compilers/tcc/include/ctype.h +232 -232
- data/lib/data/c_compilers/tcc/include/dir.h +26 -26
- data/lib/data/c_compilers/tcc/include/direct.h +95 -95
- data/lib/data/c_compilers/tcc/include/dirent.h +96 -96
- data/lib/data/c_compilers/tcc/include/dos.h +110 -110
- data/lib/data/c_compilers/tcc/include/errno.h +117 -117
- data/lib/data/c_compilers/tcc/include/excpt.h +20 -20
- data/lib/data/c_compilers/tcc/include/fcntl.h +135 -135
- data/lib/data/c_compilers/tcc/include/fenv.h +85 -85
- data/lib/data/c_compilers/tcc/include/float.h +224 -224
- data/lib/data/c_compilers/tcc/include/inttypes.h +275 -275
- data/lib/data/c_compilers/tcc/include/io.h +296 -296
- data/lib/data/c_compilers/tcc/include/limits.h +115 -115
- data/lib/data/c_compilers/tcc/include/locale.h +100 -100
- data/lib/data/c_compilers/tcc/include/malloc.h +87 -87
- data/lib/data/c_compilers/tcc/include/math.h +438 -438
- data/lib/data/c_compilers/tcc/include/mem.h +8 -8
- data/lib/data/c_compilers/tcc/include/memory.h +9 -9
- data/lib/data/c_compilers/tcc/include/process.h +158 -158
- data/lib/data/c_compilers/tcc/include/setjmp.h +72 -72
- data/lib/data/c_compilers/tcc/include/share.h +44 -44
- data/lib/data/c_compilers/tcc/include/signal.h +111 -111
- data/lib/data/c_compilers/tcc/include/stdarg.h +16 -16
- data/lib/data/c_compilers/tcc/include/stdbool.h +10 -10
- data/lib/data/c_compilers/tcc/include/stddef.h +26 -26
- data/lib/data/c_compilers/tcc/include/stdint.h +184 -184
- data/lib/data/c_compilers/tcc/include/stdio.h +413 -413
- data/lib/data/c_compilers/tcc/include/stdlib.h +482 -482
- data/lib/data/c_compilers/tcc/include/string.h +206 -206
- data/lib/data/c_compilers/tcc/include/sys/fcntl.h +8 -8
- data/lib/data/c_compilers/tcc/include/sys/file.h +9 -9
- data/lib/data/c_compilers/tcc/include/sys/locking.h +52 -52
- data/lib/data/c_compilers/tcc/include/sys/stat.h +190 -190
- data/lib/data/c_compilers/tcc/include/sys/time.h +3 -3
- data/lib/data/c_compilers/tcc/include/sys/timeb.h +82 -82
- data/lib/data/c_compilers/tcc/include/sys/types.h +118 -118
- data/lib/data/c_compilers/tcc/include/sys/unistd.h +9 -9
- data/lib/data/c_compilers/tcc/include/sys/utime.h +89 -89
- data/lib/data/c_compilers/tcc/include/tchar.h +367 -367
- data/lib/data/c_compilers/tcc/include/time.h +219 -219
- data/lib/data/c_compilers/tcc/include/unistd.h +10 -10
- data/lib/data/c_compilers/tcc/include/values.h +4 -4
- data/lib/data/c_compilers/tcc/include/varargs.h +11 -11
- data/lib/data/c_compilers/tcc/include/wchar.h +318 -318
- data/lib/data/c_compilers/tcc/include/wctype.h +127 -127
- data/lib/data/c_compilers/tcc/include/winapi/basetsd.h +119 -119
- data/lib/data/c_compilers/tcc/include/winapi/basetyps.h +144 -144
- data/lib/data/c_compilers/tcc/include/winapi/winbase.h +1852 -1852
- data/lib/data/c_compilers/tcc/include/winapi/wincon.h +207 -207
- data/lib/data/c_compilers/tcc/include/winapi/windef.h +240 -240
- data/lib/data/c_compilers/tcc/include/winapi/windows.h +176 -176
- data/lib/data/c_compilers/tcc/include/winapi/winerror.h +1054 -1054
- data/lib/data/c_compilers/tcc/include/winapi/wingdi.h +2843 -2843
- data/lib/data/c_compilers/tcc/include/winapi/winnetwk.h +346 -346
- data/lib/data/c_compilers/tcc/include/winapi/winnls.h +651 -651
- data/lib/data/c_compilers/tcc/include/winapi/winnt.h +2667 -2667
- data/lib/data/c_compilers/tcc/include/winapi/winreg.h +159 -159
- data/lib/data/c_compilers/tcc/include/winapi/winsvc.h +309 -309
- data/lib/data/c_compilers/tcc/include/winapi/winuser.h +3472 -3472
- data/lib/data/c_compilers/tcc/include/winapi/winver.h +133 -133
- data/lib/data/c_compilers/tcc/lib/gdi32.def +337 -337
- data/lib/data/c_compilers/tcc/lib/kernel32.def +763 -763
- data/lib/data/c_compilers/tcc/lib/msvcrt.def +782 -782
- data/lib/data/c_compilers/tcc/lib/user32.def +654 -654
- data/lib/data/exe_templates/launcher_stub.c +29 -29
- data/lib/data/exe_templates/launcher_stub.cpp +31 -31
- data/lib/data/launcher_templates/vbs/default_vbs.txt +7 -7
- data/lib/data/launcher_templates/vbs/vbs_gui.txt +8 -8
- data/lib/data/resource_files/default.rc +17 -17
- data/lib/displayer.rb +60 -63
- data/lib/exe_packer.rb +72 -68
- data/lib/launcher.rb +57 -71
- data/lib/launcher_handler.rb +40 -40
- data/lib/parameter_parser.rb +218 -201
- data/lib/ruby_copy.rb +48 -20
- data/lib/standalone_ruby.rb +6 -6
- data/lib/version/version.rb +2 -2
- metadata +4 -5
- data/lib/sfx_generator.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 191f2c4c200975e72085b4a94cde7747b20f1e16a2aaa5dc7cc383a4d361f3e1
|
4
|
+
data.tar.gz: 1f1346f3a1ab1c3cfa9d23bb392a980de9036821e990728178fe994639a457b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77d4829b24c43bae0a7739a3c33aad71a0ab88ea01e00427e044257fcbcddfa2d755e86cca40b7c2d5d5f4ce439c58b650e04b783fdb7e0e5d2baa874c0649ef
|
7
|
+
data.tar.gz: 0b1b89ab0862c0bc620250e3bc5a27282259bc7bdfbc64530e2a5b3b2ff9356d1ac179ab33d4ab76b32805e9f8d6e03eb9a7cc23db192d2c8b4de60387bf8790
|
data/CHANGELOG.md
CHANGED
@@ -1,48 +1,57 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
|
4
|
-
-
|
5
|
-
-
|
6
|
-
|
7
|
-
## [1.5.
|
8
|
-
-
|
9
|
-
-
|
10
|
-
-
|
11
|
-
|
12
|
-
|
13
|
-
-
|
14
|
-
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
-
|
19
|
-
-
|
20
|
-
|
21
|
-
|
22
|
-
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
-
|
40
|
-
|
41
|
-
|
42
|
-
-
|
43
|
-
|
44
|
-
## [1.1] - 2025-03
|
45
|
-
-
|
46
|
-
|
47
|
-
## [1.
|
48
|
-
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
# [1.5.3] - 2025-06-21
|
4
|
+
- Minor changes to the code structure
|
5
|
+
- Removed sfx support which in development
|
6
|
+
|
7
|
+
## [1.5.2] - 2025-06-20
|
8
|
+
- Changes have been made to the parser
|
9
|
+
- Added automatic detection for Ruby interpreter path
|
10
|
+
- Arrangements have been made for Linux support to be added soon
|
11
|
+
|
12
|
+
## [1.5.1] - 2025-04-13
|
13
|
+
- Logger support removed
|
14
|
+
- Platform analysis process fixed
|
15
|
+
|
16
|
+
## [1.5.0] - 2025-04-11
|
17
|
+
- Added support for .rc files in exe compilation
|
18
|
+
- Changes were made to the file structure
|
19
|
+
- Foundation laid for SFX exe file support
|
20
|
+
- New changes have been made to the parameter parser
|
21
|
+
- Sample project output changed
|
22
|
+
- Prevented some antiviruses from detecting compiled exe files as viruses
|
23
|
+
- Default values assigned
|
24
|
+
- VBS files are now automatically created as launcher.vbs
|
25
|
+
|
26
|
+
## [1.4.2] - 2025-04-08
|
27
|
+
- The text output of the Robocopy operation is removed from the screen
|
28
|
+
- Help message edited
|
29
|
+
|
30
|
+
## [1.4.1] - 2025-04-06
|
31
|
+
- Displayer outputs changed
|
32
|
+
|
33
|
+
## [1.4] - 2025-04-06
|
34
|
+
- Added exe support!
|
35
|
+
- Improvements have been made for non-GUI programs
|
36
|
+
|
37
|
+
## [1.3.1] - 2025-04-04
|
38
|
+
- Added platform analysis function
|
39
|
+
- Logger support fixed
|
40
|
+
|
41
|
+
## [1.3] - 2025-04-04
|
42
|
+
- Logger support has been added for testing purposes and will be adjusted later
|
43
|
+
|
44
|
+
## [1.2.1] - 2025-04-03
|
45
|
+
- Project text outputs corrected again
|
46
|
+
|
47
|
+
## [1.2] - 2025-04-02
|
48
|
+
- Added .cmd file extension support
|
49
|
+
- Added options for new supports
|
50
|
+
- Project text outputs corrected
|
51
|
+
- Added launcher to lib folder
|
52
|
+
|
53
|
+
## [1.1] - 2025-03-28
|
54
|
+
- Added support for projects with visual interfaces
|
55
|
+
|
56
|
+
## [1.0] - 2025-03-27
|
57
|
+
- First version of Standalone-Ruby released
|
data/bin/standalone-ruby
CHANGED
@@ -1,54 +1,54 @@
|
|
1
|
-
/*
|
2
|
-
* _mingw.h
|
3
|
-
*
|
4
|
-
* This file is for TCC-PE and not part of the Mingw32 package.
|
5
|
-
*
|
6
|
-
* THIS SOFTWARE IS NOT COPYRIGHTED
|
7
|
-
*
|
8
|
-
* This source code is offered for use in the public domain. You may
|
9
|
-
* use, modify or distribute it freely.
|
10
|
-
*
|
11
|
-
* This code is distributed in the hope that it will be useful but
|
12
|
-
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
13
|
-
* DISCLAIMED. This includes but is not limited to warranties of
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
15
|
-
*
|
16
|
-
*/
|
17
|
-
|
18
|
-
#ifndef __MINGW_H
|
19
|
-
#define __MINGW_H
|
20
|
-
|
21
|
-
#include <stddef.h>
|
22
|
-
|
23
|
-
#define __int64 long long
|
24
|
-
#define __int32 long
|
25
|
-
#define __int16 short
|
26
|
-
#define __int8 char
|
27
|
-
#define __cdecl __attribute__((__cdecl__))
|
28
|
-
#define __stdcall __attribute__((__stdcall__))
|
29
|
-
#define __declspec(x) __attribute__((x))
|
30
|
-
|
31
|
-
#define __MINGW32_VERSION 2.0
|
32
|
-
#define __MINGW32_MAJOR_VERSION 2
|
33
|
-
#define __MINGW32_MINOR_VERSION 0
|
34
|
-
|
35
|
-
#define __MSVCRT__ 1
|
36
|
-
#define __MINGW_IMPORT extern
|
37
|
-
#define _CRTIMP
|
38
|
-
#define __CRT_INLINE extern __inline__
|
39
|
-
|
40
|
-
#define WIN32 1
|
41
|
-
|
42
|
-
#ifndef _WINT_T
|
43
|
-
#define _WINT_T
|
44
|
-
typedef unsigned int wint_t;
|
45
|
-
#endif
|
46
|
-
|
47
|
-
/* for winapi */
|
48
|
-
#define _ANONYMOUS_UNION
|
49
|
-
#define _ANONYMOUS_STRUCT
|
50
|
-
#define DECLSPEC_NORETURN
|
51
|
-
#define WIN32_LEAN_AND_MEAN
|
52
|
-
#define DECLARE_STDCALL_P(type) __stdcall type
|
53
|
-
|
54
|
-
#endif /* __MINGW_H */
|
1
|
+
/*
|
2
|
+
* _mingw.h
|
3
|
+
*
|
4
|
+
* This file is for TCC-PE and not part of the Mingw32 package.
|
5
|
+
*
|
6
|
+
* THIS SOFTWARE IS NOT COPYRIGHTED
|
7
|
+
*
|
8
|
+
* This source code is offered for use in the public domain. You may
|
9
|
+
* use, modify or distribute it freely.
|
10
|
+
*
|
11
|
+
* This code is distributed in the hope that it will be useful but
|
12
|
+
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
13
|
+
* DISCLAIMED. This includes but is not limited to warranties of
|
14
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
15
|
+
*
|
16
|
+
*/
|
17
|
+
|
18
|
+
#ifndef __MINGW_H
|
19
|
+
#define __MINGW_H
|
20
|
+
|
21
|
+
#include <stddef.h>
|
22
|
+
|
23
|
+
#define __int64 long long
|
24
|
+
#define __int32 long
|
25
|
+
#define __int16 short
|
26
|
+
#define __int8 char
|
27
|
+
#define __cdecl __attribute__((__cdecl__))
|
28
|
+
#define __stdcall __attribute__((__stdcall__))
|
29
|
+
#define __declspec(x) __attribute__((x))
|
30
|
+
|
31
|
+
#define __MINGW32_VERSION 2.0
|
32
|
+
#define __MINGW32_MAJOR_VERSION 2
|
33
|
+
#define __MINGW32_MINOR_VERSION 0
|
34
|
+
|
35
|
+
#define __MSVCRT__ 1
|
36
|
+
#define __MINGW_IMPORT extern
|
37
|
+
#define _CRTIMP
|
38
|
+
#define __CRT_INLINE extern __inline__
|
39
|
+
|
40
|
+
#define WIN32 1
|
41
|
+
|
42
|
+
#ifndef _WINT_T
|
43
|
+
#define _WINT_T
|
44
|
+
typedef unsigned int wint_t;
|
45
|
+
#endif
|
46
|
+
|
47
|
+
/* for winapi */
|
48
|
+
#define _ANONYMOUS_UNION
|
49
|
+
#define _ANONYMOUS_STRUCT
|
50
|
+
#define DECLSPEC_NORETURN
|
51
|
+
#define WIN32_LEAN_AND_MEAN
|
52
|
+
#define DECLARE_STDCALL_P(type) __stdcall type
|
53
|
+
|
54
|
+
#endif /* __MINGW_H */
|
@@ -1,71 +1,71 @@
|
|
1
|
-
/*
|
2
|
-
* assert.h
|
3
|
-
*
|
4
|
-
* Define the assert macro for debug output.
|
5
|
-
*
|
6
|
-
* This file is part of the Mingw32 package.
|
7
|
-
*
|
8
|
-
* Contributors:
|
9
|
-
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
10
|
-
*
|
11
|
-
* THIS SOFTWARE IS NOT COPYRIGHTED
|
12
|
-
*
|
13
|
-
* This source code is offered for use in the public domain. You may
|
14
|
-
* use, modify or distribute it freely.
|
15
|
-
*
|
16
|
-
* This code is distributed in the hope that it will be useful but
|
17
|
-
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
18
|
-
* DISCLAIMED. This includes but is not limited to warranties of
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
20
|
-
*
|
21
|
-
* $Revision: 1.2 $
|
22
|
-
* $Author: bellard $
|
23
|
-
* $Date: 2005/04/17 13:14:29 $
|
24
|
-
*
|
25
|
-
*/
|
26
|
-
|
27
|
-
#ifndef _ASSERT_H_
|
28
|
-
#define _ASSERT_H_
|
29
|
-
|
30
|
-
/* All the headers include this file. */
|
31
|
-
#include <_mingw.h>
|
32
|
-
|
33
|
-
#ifndef RC_INVOKED
|
34
|
-
|
35
|
-
#ifdef __cplusplus
|
36
|
-
extern "C" {
|
37
|
-
#endif
|
38
|
-
|
39
|
-
#ifdef NDEBUG
|
40
|
-
|
41
|
-
/*
|
42
|
-
* If not debugging, assert does nothing.
|
43
|
-
*/
|
44
|
-
#define assert(x) ((void)0)
|
45
|
-
|
46
|
-
#else /* debugging enabled */
|
47
|
-
|
48
|
-
/*
|
49
|
-
* CRTDLL nicely supplies a function which does the actual output and
|
50
|
-
* call to abort.
|
51
|
-
*/
|
52
|
-
void _assert (const char*, const char*, int)
|
53
|
-
#ifdef __GNUC__
|
54
|
-
__attribute__ ((noreturn))
|
55
|
-
#endif
|
56
|
-
;
|
57
|
-
|
58
|
-
/*
|
59
|
-
* Definition of the assert macro.
|
60
|
-
*/
|
61
|
-
#define assert(e) ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__))
|
62
|
-
#endif /* NDEBUG */
|
63
|
-
|
64
|
-
#ifdef __cplusplus
|
65
|
-
}
|
66
|
-
#endif
|
67
|
-
|
68
|
-
#endif /* Not RC_INVOKED */
|
69
|
-
|
70
|
-
#endif /* Not _ASSERT_H_ */
|
71
|
-
|
1
|
+
/*
|
2
|
+
* assert.h
|
3
|
+
*
|
4
|
+
* Define the assert macro for debug output.
|
5
|
+
*
|
6
|
+
* This file is part of the Mingw32 package.
|
7
|
+
*
|
8
|
+
* Contributors:
|
9
|
+
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
10
|
+
*
|
11
|
+
* THIS SOFTWARE IS NOT COPYRIGHTED
|
12
|
+
*
|
13
|
+
* This source code is offered for use in the public domain. You may
|
14
|
+
* use, modify or distribute it freely.
|
15
|
+
*
|
16
|
+
* This code is distributed in the hope that it will be useful but
|
17
|
+
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
18
|
+
* DISCLAIMED. This includes but is not limited to warranties of
|
19
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
20
|
+
*
|
21
|
+
* $Revision: 1.2 $
|
22
|
+
* $Author: bellard $
|
23
|
+
* $Date: 2005/04/17 13:14:29 $
|
24
|
+
*
|
25
|
+
*/
|
26
|
+
|
27
|
+
#ifndef _ASSERT_H_
|
28
|
+
#define _ASSERT_H_
|
29
|
+
|
30
|
+
/* All the headers include this file. */
|
31
|
+
#include <_mingw.h>
|
32
|
+
|
33
|
+
#ifndef RC_INVOKED
|
34
|
+
|
35
|
+
#ifdef __cplusplus
|
36
|
+
extern "C" {
|
37
|
+
#endif
|
38
|
+
|
39
|
+
#ifdef NDEBUG
|
40
|
+
|
41
|
+
/*
|
42
|
+
* If not debugging, assert does nothing.
|
43
|
+
*/
|
44
|
+
#define assert(x) ((void)0)
|
45
|
+
|
46
|
+
#else /* debugging enabled */
|
47
|
+
|
48
|
+
/*
|
49
|
+
* CRTDLL nicely supplies a function which does the actual output and
|
50
|
+
* call to abort.
|
51
|
+
*/
|
52
|
+
void _assert (const char*, const char*, int)
|
53
|
+
#ifdef __GNUC__
|
54
|
+
__attribute__ ((noreturn))
|
55
|
+
#endif
|
56
|
+
;
|
57
|
+
|
58
|
+
/*
|
59
|
+
* Definition of the assert macro.
|
60
|
+
*/
|
61
|
+
#define assert(e) ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__))
|
62
|
+
#endif /* NDEBUG */
|
63
|
+
|
64
|
+
#ifdef __cplusplus
|
65
|
+
}
|
66
|
+
#endif
|
67
|
+
|
68
|
+
#endif /* Not RC_INVOKED */
|
69
|
+
|
70
|
+
#endif /* Not _ASSERT_H_ */
|
71
|
+
|