2 single: Distributing Ring Application; Introduction
4 ==============================
5 Distributing Ring Applications
6 ==============================
8 In this chapter we will learn about distributing Ring applications.
10 The next method is old and was used in Ring 1.5 and previous versions!
12 Starting from Ring 1.6 we have a nice tool called Ring2EXE
14 Using Ring2EXE we can distribute applications quickly for Windows, Linux and macOS
16 Check the Ring2EXE chapter for more information!
20 pair: Distributing Ring Application; Distributing Applications for Microsoft Windows
22 Distributing Applications for Microsoft Windows
23 ===============================================
29 Copy c:\ring\bin folder to be for example c:\myapp
35 Rename c:\myapp\ring.exe to c:\myapp\myapp.exe
41 Create a file c:\myapp\ring.ring
49 When you run myapp.exe the file ring.ring will be executed automatically
51 So your file myapp.ring will be called and executed
53 Or just rename myapp.ring to ring.ring
55 It's a fast way to distribute applications.
58 pair: Distributing Ring Application; Protecting the Source Code
60 Protecting the Source Code
61 ==========================
65 Execute the next command
71 This will generate one object file (myapp.ringo) from the project files (*.ring)
77 Rename myapp.ringo to ring.ringo
79 When you run the executable file (ring.exe) or (myapp.exe) the file ring.ringo will be executed.
82 pair: Distributing Ring Application; The files ring.ring and ring.ringo
84 The files ring.ring and ring.ringo
85 ==================================
87 Ring will run ring.ring or ring.ringo only when
89 (1) The file exist in the current directory
90 (2) No file is passed to (ring.exe) to execute
92 We added the support to ring.ring (and ring.ringo) for a way to distribute Ring apps (before Ring2EXE)
95 pair: Distributing Ring Application; Creating Windows Installer
97 Creating Windows Installer
98 ==========================
100 There are many tools that you can use to distribute your application.
102 Check : nullsoft scriptable install system
104 URL : http://nsis.sourceforge.net/Main_Page
107 pair: Distributing Ring Application; Using C/C++ Compiler and Linker
109 Using C/C++ Compiler and Linker
110 ===============================
112 Another method to distribute applications is to use a C/C++ compiler.
114 Ring can be embedded in C/C++ projects, We can create executable files using a C/C++ compiler
115 by embedding the Ring language in our project.
117 Check the "Embedding Ring Language in C/C++ Programs" chapter.
119 Using this way we will avoid using ring.ring or ring.ringo files.
122 pair: Distributing Ring Application; Distributing Applications and Games for Mobile
124 Distributing Applications and Games for Mobile
125 ==============================================
127 Ring can be embedded in a Qt projects or LibSDL projects to build Mobile applications and Games.
129 You can build the Qt project or the LibSDL project and get the Android package directly (*.apk)
131 Check Ring distributions for Mobile development using Qt or LibSDL.