Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to release a page routing framework based on the latest build tool chain as the main line

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly introduces "how to realize publishing based on the latest construction tool chain with a page routing framework as the main line". In daily operation, I believe many people have doubts on how to realize publishing based on the latest construction tool chain with a page routing framework as the main line. Xiao Bian consulted all kinds of materials and sorted out simple and easy operation methods. Hope to answer everyone "how to achieve the latest build tool chain based on a page routing framework published as the main line" doubts help! Next, please follow the small series to learn together!

technical requirements

Android Basics

Basic use of development tools such as Android Studio

environmental parameters

Technical languages: Groovy/Java/Kotlin

Android: 10.0+ Development Platform: Mac

IDE:Android Studio 4.0+Gradle:6.0+

Android Gradle Plugin: 4.1.0+

coding=UTF-8

XingHe Studio File to MD5 and SHA1

Galaxy Studio (XingHeStudio.com)

Create by Stream.Wang 2012-04-10

Modify by Stream.Wang 2012-04-10

def fil_changefileext(filename,extname=''):

FIL ChangeFileExt Change file extension

filename Enter the file path name

extname =''To change the extension, e.g..txt

import os

try:

if extname[0]'. ':

extname='. '+extname

except:

extname=''

if os.path.splitext(filename)[1]=='':

uouttxt=filename+'. '+extname

elif os.path.splitext(filename)[1]=='. ':

uouttxt=filename+extname

else:

uouttxt=filename[:0-len(os.path.splitext(filename)[1])]+extname

return uouttxt

def fil_str2file(fstr,filename):

FIL STR2File Save string to file try: outfile=open(filename,'w') outfile.writelines(fstr) outfile.close() return True except: return False System main program start

if name == 'main':

import os,sys,math

if len(sys.argv)==1:sys.argv.append(r'c:\FreeNAS-8.0.4-RELEASE-x64.iso')

if len(sys.argv)>1:

filepathname=sys.argv[1]

if os.path.isfile(filepathname) :

fmaxs = os.path.getsize(filepathname)+0.00

fpos = 0.00

ppos=0

pmax=50

pjy=0

fmd5=fil_changefileext(filepathname,'.md5')

fsha1=fil_changefileext(filepathname,'.sha')

ffm=os.path.basename(filepathname)

initial disposal

print 'Program Runing "'+filepathname+'" ... '

import hashlib

try:

umd5str = hashlib.md5()

usha1str = hashlib.sha1()

xfilepathname=unicode(filepathname,'utf8')

Requirements Read file contents in binary format

ufile = file(xfilepathname,'rb')

while True:

datas = ufile.read(1024512)

if not datas: break

umd5str.update( datas )

usha1str.update( datas )

fpos=fpos+1024512

ppos=int(math.floor(fpos / fmaxs 50))

pposbfh=int(math.floor(fpos / fmaxs 100))

Print progress bar

if pjyppos: print '['+''ppos +'='(pmax-ppos)+'] '+str(pposbfh) +'%'

Print progress problem has not been dealt with, do not know how the print function back to the beginning of the line cover output, do not newline I know, add a ","

pjy=ppos

uoutstrmd5=str(umd5str.hexdigest())

uoutstrsha1=str(usha1str.hexdigest())

ufile.close()

print ''

fil_str2file(uoutstrmd5+' '+ffm+'\n',fmd5)

fil_str2file(uoutstrsha1+' *'+ffm+'\n',fsha1)

print 'Task is completed ! ' + r' [ XingHe Studio File to MD5 and SHA1 ]'

except:

print 'Error ! ' + r' [ XingHe Studio File to MD5 and SHA1 ]'

else:

print 'File "'+filepathname+'" not exist! '+ r' [ XingHe Studio File to MD5 and SHA1 ]'

else:

print r' [ XingHe Studio File to MD5 and SHA1 ]'http://www.0398hfyy.com

At this point, the study of "how to realize publishing a page routing framework based on the latest construction tool chain" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report