Skip to content

Commit 29b237c

Browse files
CAppDevKit v1.2
1 parent 0d5ad38 commit 29b237c

File tree

10 files changed

+100
-10
lines changed

10 files changed

+100
-10
lines changed

CAppDevKitInfoLib/cappdevkitinfo.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@
55

66
#define C_LIB_NAME "CAppDevKit"
77
#define C_APP_DEV_KIT "CAppDevKit (C App Developer Kit)"
8-
#define CAppDevKit_Ver 1.1
8+
#define CAppDevKit_Ver 1.2
99
#define CAppDevKit_RS_Date "11/24/2023"
10-
#define CAppDevKit_LAST_UPDATED_DATE "11/25/2023"
10+
#define CAppDevKit_LAST_UPDATED_DATE "11/26/2023"
1111
#define CAppDevKit_Developer_Name "@LinuxUsersLinuxMint"
1212
#define CAppDevKit_Developer_website "https://linuxuserslinuxmint.github.io"
1313

1414
struct CAppDevKitInfo
1515
{
16-
app_name clibname;
17-
app_name cappdevkit;
16+
app_name clibname, cappdevkit;
1817
app_ver_t cappdevkitver;
1918
app_rs_date cappreleasedate;
2019
app_lsup_date capplsupdate;

CAppDevKitLib/appcustomvar.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33

44
#include <stdio.h>
55
#include <stdlib.h>
6+
#include <string.h>
67

78
typedef int app_ver;
89
typedef float app_ver_t;
9-
typedef const char *app_rs_date;
10-
typedef const char *app_lsup_date;
11-
typedef const char *app_name;
12-
typedef const char *app_developer_name;
13-
typedef const char *app_developer_website;
10+
typedef const char *app_rs_date, *app_lsup_date, *app_name, *app_developer_name, *app_developer_website;
1411

1512
// typedef void custom
1613

exampleapp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ int main()
1111

1212
if (process == 1)
1313
{
14-
appinfo("ExampleCAppDevKitProject",1.0,"11/24/2023","11/25/2023","@LinuxUsersLinuxMint","https://linuxuserslinuxmint.github.io");
14+
appinfo("ExampleCAppDevKitProject",1.0,"11/24/2023","11/26/2023","@LinuxUsersLinuxMint","https://linuxuserslinuxmint.github.io");
1515
}
1616
if (process == 2)
1717
{
@@ -21,5 +21,9 @@ int main()
2121
{
2222
app_exit();
2323
}
24+
else
25+
{
26+
printf("Invalid process...");
27+
}
2428
return 0;
2529
}

setup_copy_files.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/sh
2+
cp exampleapp.c CAppDevKit/
3+
chmod a+x CAppDevKit/
4+
cp CAppDevKitInfoLib/cappdevkitinfo.h CAppDevKit/CAppDevKitInfoLib/
5+
chmod a+x CAppDevKit/CAppDevKitInfoLib/cappdevkitinfo.h
6+
cp CAppDevKitLib/appcustomvar.h CAppDevKit/CAppDevKitLib/
7+
chmod a+x CAppDevKit/CAppDevKitLib/appcustomvar.h
8+
cp CAppDevKitLib/appvoid.h CAppDevKit/CAppDevKitLib/
9+
chmod a+x CAppDevKit/CAppDevKitLib/appvoid.h

setup_create_dir.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/sh
2+
mkdir CAppDevKit
3+
mkdir CAppDevKit/CAppDevKitInfoLib
4+
mkdir CAppDevKit/CAppDevKitLib
5+
chmod a+x CAppDevKit

setup_folder_copy.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/sh
2+
cp -r CAppDevKit /CAppDevKit

setupcappdevkit.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/usr/bin/python3
2+
# Copyright© 2023 LinuxUsersLinuxMint
3+
# CAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
4+
# CAppDevKit All Rights Reserved under the GPL(General Public License).
5+
# Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
6+
# A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
7+
8+
import time, os
9+
10+
yes_no=str(input('Are you sure you want to install CAppDevKit? (Y / N / Uninstall): '))
11+
12+
if yes_no=="N" or yes_no=="n" or yes_no=="No" or yes_no=="no" or yes_no=="NO":
13+
exit()
14+
elif yes_no=="Y" or yes_no=="y" or yes_no=="Yes" or yes_no=="yes" or yes_no=="YES":
15+
print("Installing CAppDevKit...")
16+
time.sleep(3)
17+
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 1/3...")
18+
time.sleep(3)
19+
print("[CAppDevKit_Setup_Environment]: setup_create_dir.sh step 1/3... (Create Folder)")
20+
time.sleep(3)
21+
os.system("./setup_create_dir.sh")
22+
time.sleep(3)
23+
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
24+
time.sleep(3)
25+
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 2/3...")
26+
time.sleep(3)
27+
print("[CAppDevKit_Setup_Environment]: setup_copy_files.sh step 2/3... (Copy Files)")
28+
time.sleep(3)
29+
os.system("./setup_copy_files.sh")
30+
time.sleep(3)
31+
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
32+
time.sleep(3)
33+
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 3/3...")
34+
time.sleep(3)
35+
print("[CAppDevKit_Setup_Environment]: setup_folder_copy.sh step 3/3... (Copy Folder)")
36+
time.sleep(3)
37+
os.system("./setup_folder_copy.sh")
38+
time.sleep(3)
39+
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
40+
exit()
41+
elif yes_no=="Uninstall" or yes_no=="uninstall" or yes_no=="U" or yes_no=="u":
42+
print("Uninstall CAppDevKit...")
43+
time.sleep(3)
44+
os.system("./uninstall_cappdevkit.sh")
45+
time.sleep(2)
46+
exit()
47+
else:
48+
print("Invalid CAppSE (CAppDevKit Setup Environment) Argument...")

uninstall_cappdevkit.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/usr/bin/sh
2+
rm -rf /CappDevKit

win_install.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo off
2+
@title=CAppDevKit Setup Environment
3+
@color 1
4+
:m
5+
cls
6+
echo Press enter to start the installation...
7+
pause
8+
echo CAppDevKit will be downloaded.
9+
copy exampleapp.c C:\CAppDevKit
10+
copy CAppDevKitInfoLib\cappdevkitinfo.h C:\CAppDevKit\CAppDevKitInfoLib
11+
copy CAppDevKitLib\appcustomvar.h C:\CAppDevKit\CAppDevKitLib
12+
copy CAppDevKitLib\appvoid.h C:\CAppDevKit\CAppDevKitLib
13+
pause
14+
exit

win_uninstall.bat

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
@echo off
2+
@title=CAppDevKit Setup Environment
3+
@color 1
4+
:m
5+
cls
6+
echo Press enter to start the uninstallation...
7+
pause
8+
del C:\CAppDevKit
9+
pause
10+
exit

0 commit comments

Comments
 (0)