Skip to content

Commit

Permalink
CAppDevKit v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxUsersLinuxMint authored Nov 25, 2023
1 parent 0d5ad38 commit 29b237c
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 10 deletions.
7 changes: 3 additions & 4 deletions CAppDevKitInfoLib/cappdevkitinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@

#define C_LIB_NAME "CAppDevKit"
#define C_APP_DEV_KIT "CAppDevKit (C App Developer Kit)"
#define CAppDevKit_Ver 1.1
#define CAppDevKit_Ver 1.2
#define CAppDevKit_RS_Date "11/24/2023"
#define CAppDevKit_LAST_UPDATED_DATE "11/25/2023"
#define CAppDevKit_LAST_UPDATED_DATE "11/26/2023"
#define CAppDevKit_Developer_Name "@LinuxUsersLinuxMint"
#define CAppDevKit_Developer_website "https://linuxuserslinuxmint.github.io"

struct CAppDevKitInfo
{
app_name clibname;
app_name cappdevkit;
app_name clibname, cappdevkit;
app_ver_t cappdevkitver;
app_rs_date cappreleasedate;
app_lsup_date capplsupdate;
Expand Down
7 changes: 2 additions & 5 deletions CAppDevKitLib/appcustomvar.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef int app_ver;
typedef float app_ver_t;
typedef const char *app_rs_date;
typedef const char *app_lsup_date;
typedef const char *app_name;
typedef const char *app_developer_name;
typedef const char *app_developer_website;
typedef const char *app_rs_date, *app_lsup_date, *app_name, *app_developer_name, *app_developer_website;

// typedef void custom

Expand Down
6 changes: 5 additions & 1 deletion exampleapp.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main()

if (process == 1)
{
appinfo("ExampleCAppDevKitProject",1.0,"11/24/2023","11/25/2023","@LinuxUsersLinuxMint","https://linuxuserslinuxmint.github.io");
appinfo("ExampleCAppDevKitProject",1.0,"11/24/2023","11/26/2023","@LinuxUsersLinuxMint","https://linuxuserslinuxmint.github.io");
}
if (process == 2)
{
Expand All @@ -21,5 +21,9 @@ int main()
{
app_exit();
}
else
{
printf("Invalid process...");
}
return 0;
}
9 changes: 9 additions & 0 deletions setup_copy_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/sh
cp exampleapp.c CAppDevKit/
chmod a+x CAppDevKit/
cp CAppDevKitInfoLib/cappdevkitinfo.h CAppDevKit/CAppDevKitInfoLib/
chmod a+x CAppDevKit/CAppDevKitInfoLib/cappdevkitinfo.h
cp CAppDevKitLib/appcustomvar.h CAppDevKit/CAppDevKitLib/
chmod a+x CAppDevKit/CAppDevKitLib/appcustomvar.h
cp CAppDevKitLib/appvoid.h CAppDevKit/CAppDevKitLib/
chmod a+x CAppDevKit/CAppDevKitLib/appvoid.h
5 changes: 5 additions & 0 deletions setup_create_dir.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/sh
mkdir CAppDevKit
mkdir CAppDevKit/CAppDevKitInfoLib
mkdir CAppDevKit/CAppDevKitLib
chmod a+x CAppDevKit
2 changes: 2 additions & 0 deletions setup_folder_copy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/sh
cp -r CAppDevKit /CAppDevKit
48 changes: 48 additions & 0 deletions setupcappdevkit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/usr/bin/python3
# Copyright© 2023 LinuxUsersLinuxMint
# CAppDevKit Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
# CAppDevKit All Rights Reserved under the GPL(General Public License).
# Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
# A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint

import time, os

yes_no=str(input('Are you sure you want to install CAppDevKit? (Y / N / Uninstall): '))

if yes_no=="N" or yes_no=="n" or yes_no=="No" or yes_no=="no" or yes_no=="NO":
exit()
elif yes_no=="Y" or yes_no=="y" or yes_no=="Yes" or yes_no=="yes" or yes_no=="YES":
print("Installing CAppDevKit...")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 1/3...")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: setup_create_dir.sh step 1/3... (Create Folder)")
time.sleep(3)
os.system("./setup_create_dir.sh")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 2/3...")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: setup_copy_files.sh step 2/3... (Copy Files)")
time.sleep(3)
os.system("./setup_copy_files.sh")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step 3/3...")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: setup_folder_copy.sh step 3/3... (Copy Folder)")
time.sleep(3)
os.system("./setup_folder_copy.sh")
time.sleep(3)
print("[CAppDevKit_Setup_Environment]: CAppDevKit installation step completed...")
exit()
elif yes_no=="Uninstall" or yes_no=="uninstall" or yes_no=="U" or yes_no=="u":
print("Uninstall CAppDevKit...")
time.sleep(3)
os.system("./uninstall_cappdevkit.sh")
time.sleep(2)
exit()
else:
print("Invalid CAppSE (CAppDevKit Setup Environment) Argument...")
2 changes: 2 additions & 0 deletions uninstall_cappdevkit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/sh
rm -rf /CappDevKit
14 changes: 14 additions & 0 deletions win_install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo off
@title=CAppDevKit Setup Environment
@color 1
:m
cls
echo Press enter to start the installation...
pause
echo CAppDevKit will be downloaded.
copy exampleapp.c C:\CAppDevKit
copy CAppDevKitInfoLib\cappdevkitinfo.h C:\CAppDevKit\CAppDevKitInfoLib
copy CAppDevKitLib\appcustomvar.h C:\CAppDevKit\CAppDevKitLib
copy CAppDevKitLib\appvoid.h C:\CAppDevKit\CAppDevKitLib
pause
exit
10 changes: 10 additions & 0 deletions win_uninstall.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
@title=CAppDevKit Setup Environment
@color 1
:m
cls
echo Press enter to start the uninstallation...
pause
del C:\CAppDevKit
pause
exit

0 comments on commit 29b237c

Please sign in to comment.