You need to pbo your files. if you look at an addon, you'll find the addons folder, plus a possible keys folder for signed ones (to install it in a server for example).
You have all you need in arma3 tools: https://community.bistudio.com/wiki/Category:Arma_3_Official_Tools
Before pbo, you must have a config.cpp (a kind of description.ext) with the classes cfgPatches (your addon identifier)
and cfgFunctions (the way to launch your addon via an sqf).
Avoid init.sqf, this is a special sqf for all scripted missions. choose something else, the important thing is to launch your main sqf function via cfgFunctions.
You can find some docs on BIKI and other sites.