How to generate a forever applicable link like we get from qr code for apk

Please Reply ASAP for my query.

Are you asking how to create a QRcode image with your link information?

Here is one way Qr : Read and Create Qr/Bar Code offline

and another https://puravidaapps.com/qr.php

or just using the Internet https://www.qr-code-generator.com/

What you do depends on why you need the link, what is stored at the link etc. If you link to on GoogleDrive, you possibly can place your apk there for download.